Hi ,
I have a nginx 1.4.6 running on Ubuntu 14.04.5 LTS and recently i have changed the path of the access_log and error_log to a diff path (which has bigger disk).
However after changing the path in nginx.conf i still see the error log being written to the regular log path /var/log/nginx/error.log as well as the new path, - but with time difference and content. i am seeking advice from this forum for this issue. appreciate much. thanks..
[standard log path]
root@ip-172-31-13-74:/etc/nginx# ll /var/log/nginx/error.log
-rw-r--r-- 1 www-data root 75097175 Jan 11 15:40 /var/log/nginx/error.log
[new log path]
root@ip-172-31-13-74:/etc/nginx# ll /log/nginx/error.log
-rw-r----- 1 www-data adm 3716 Jan 11 15:29 /log/nginx/error.log
[nginx.conf setting for the logs]
access_log /log/nginx/access.log;
error_log /log/nginx/error.log;
I have a nginx 1.4.6 running on Ubuntu 14.04.5 LTS and recently i have changed the path of the access_log and error_log to a diff path (which has bigger disk).
However after changing the path in nginx.conf i still see the error log being written to the regular log path /var/log/nginx/error.log as well as the new path, - but with time difference and content. i am seeking advice from this forum for this issue. appreciate much. thanks..
[standard log path]
root@ip-172-31-13-74:/etc/nginx# ll /var/log/nginx/error.log
-rw-r--r-- 1 www-data root 75097175 Jan 11 15:40 /var/log/nginx/error.log
[new log path]
root@ip-172-31-13-74:/etc/nginx# ll /log/nginx/error.log
-rw-r----- 1 www-data adm 3716 Jan 11 15:29 /log/nginx/error.log
[nginx.conf setting for the logs]
access_log /log/nginx/access.log;
error_log /log/nginx/error.log;