WordPress站点Nginx
如果WordPress后台打开界面混乱,没有CSS或者JS,按照我的方法也可以解决
SSL
不使用Force SSL

Advanced
yaml
location / {
proxy_set_header X-MyHeader $http_x_my_header;
root /www/wordpress;
index index.html index.php;
try_files $uri $uri/ /index.php?$args;
}
# PHP处理配置
location ~ \.php$ {
proxy_set_header X-MyHeader $http_x_my_header;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/html/wordpress$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
又拍云CDN配置
源站设置

回源Host可以不设置
全程参数跟随
开启HTTPS

本文章来源于我的博客:https://blog.hikki.site
本文是原创文章,采用 CC BY-NC-SA 4.0 协议,完整转载请注明来自 小码同学
评论
隐私政策
0/500
滚动到此处加载评论...


