用lnmp搭建的环境,重启后发现WordPress的规则导致nginx无法启动
wordpress吧
全部回复
仅看楼主
level 5
F_yaman 楼主
重启nginx的提示是:
Starting nginx... nginx: [emerg] "location" directive is not allowed here in /usr/local/nginx/conf/wordpress.conf:1
这个WordPress.conf文件里面是
location / {
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
各位大神有遇到过吗,这个怎么解决?
2019年06月24日 14点06分 1
level 11
重装试试
2019年06月30日 04点06分 5
谢谢 折腾两天弄明白了 是nginx的伪静态规则有个符号错误
2019年07月01日 14点07分
level 5
伪静态问题
2019年07月02日 03点07分 6
level 7
90%的nginx报错都可以百度的到 多动动手指呀[乖]
2019年07月02日 06点07分 7
1