Answer the question
In order to leave comments, you need to log in
Why does NGINX keep writing logs to /var/log/?
Created a wwwdata user and a group, built NGINX under the wwwdata user
Logs everywhere in the settings indicated along the path /wwwdata/logs
And the fact is that he writes them there correctly ... BUT! Continues to write the same way to /var/log/
Although /var/log/ is not listed anywhere else, I changed everything to a different path.
Did both restart and reload and it's useless. Writes here and there.
Answer the question
In order to leave comments, you need to log in
most likely nginx is built with -http-log-path=/var/log/nginx/access_log
in the section http
specifyaccess_log off;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question