Closed. This question is off-topic。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
5年前关闭。
我收到此消息:
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
5年前关闭。
我收到此消息:
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.
最佳答案
对我来说,它看起来很简单-只需在上述行中固定位置即可。
在停止nginx之前,每次修改配置时都建议您进行一次测试。命令行类似于以下内容:
nginx -t -c /PATH/TO/CONF.conf