문제

I have this message:

    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.
도움이 되었습니까?

해결책

It looks pretty straight forward to me - just fix the location in the mentioned line.

Just a piece of advice would be to test your configuration each time you edit it, before stopping nginx. The command line would be something similar and simple as:

nginx -t -c /PATH/TO/CONF.conf
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top