我nginx.conf
具有包含本服務器博客:Wordpress和NGINX /可溼性粉劑管理員重定向循環
location ~ \.php$ {
root /var/www/html/blog;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location /blog {
root /var/www/html/blog;
include /etc/nginx/mime.types;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
但使用這些設置,當我嘗試訪問/blog/wp-admin
我的瀏覽器卡住在一些重定向循環。
如果我將nginx.conf
中的根URL更改爲/var/www/html
,/blog/wp-admin
,但我的帖子永久鏈接會給我一個404錯誤。
我的WP文件位於/var/www/html/blog
。我安裝了「SSL不安全內容修復程序」插件,因爲我的圖像在我的網站上給出了混合內容錯誤,其中Cloudflare頁面規則始終使用SSL。
我的WP address
和WP home
都設置爲http://xxx/blog
。
任何人修正了類似的東西?
感謝
你是一個英雄,一個學者。可以救我幾個小時。 –