Compress nginx logs

Discussion in '3CX Phone System - General' started by Sopock, Sep 30, 2016.

Thread Status:
Not open for further replies.
  1. Sopock

    Sopock Member

    Joined:
    Jul 11, 2012
    Messages:
    447
    Likes Received:
    20
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. norekhov

    3CX Support

    Joined:
    Jan 31, 2014
    Messages:
    53
    Likes Received:
    1
    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;
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.