我有这样的信息:
nginx: [emerg] location "/" is outside location "/nginx_status"...f:67
nginx: configuration file /etc/nginx/nginx.conf test failed
nginx.service: control process exited, code=exited status=1
Failed to start The nginx HTTP and reverse proxy server.
Unit nginx.service entered failed state.
答案 0 :(得分:1)
我看起来很直接 - 只需修改上述行中的位置即可。
在停止nginx之前,只需一条建议就是在每次编辑时测试配置。命令行将类似于以下内容:
nginx -t -c /PATH/TO/CONF.conf