Compress nginx logs

Status
Not open for further replies.

Sopock

Joined
Jul 11, 2012
Messages
404
Reaction score
16
Hi!
You may notice growing access log file. Regularly compressed file would take 100X less space. There is nginx command for opening new log files?
 
Well we don't have log rotation for nginx and in SP2 we just disabled them.
You can do it for yourself by adding these lines to both server{} sections in your nginx.conf (usually C:\Program Files\3CX Phone System\Bin\nginx\conf) and then restart nginx.

access_log off;
error_log off;
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,852
Messages
589,382
Members
164,690
Latest member
rick.yamamoto