/usr/local/nginx/conf/proxy.conf添加上一行
proxy_set_header X-Forwarded-Proto $scheme;
wordpress的wp-config.php添加上:
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
wordpress wp_options中的home,改为https的地址。
/usr/local/nginx/conf/proxy.conf添加上一行
proxy_set_header X-Forwarded-Proto $scheme;
wordpress的wp-config.php添加上:
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
wordpress wp_options中的home,改为https的地址。