nginx: [emerg] “location“ directive is not allowed here in /usr/local/nginx/conf/nginx.conf:72

做LNMP实验中的PHP设置完测试页面重启nginx时发现重不不成用nginx -t检测说如下原因
nginx: [emerg] “location” directive is not allowed here in /usr/local/nginx/conf/nginx.conf:72
解决办法 原来是我之前做虚拟主机基于IP地址端口号时没有把配置文件改过来,就直接去把之前做的实验更改一下在重启就好了

猜你喜欢

转载自blog.csdn.net/Laiyunpeng666/article/details/108425885