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