C
C
chelkaz2017-06-22 13:49:22
linux
chelkaz, 2017-06-22 13:49:22

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

1 answer(s)
A
Andrey Burov, 2017-06-22
@chelkaz

most likely nginx is built with -http-log-path=/var/log/nginx/access_log
in the section httpspecifyaccess_log off;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question