/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的地址。 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏