Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

NGINX logs integration?

Discussion in 'General Discussion' started by x-man, Feb 14, 2013.

  1. x-man

    x-man Well-Known Member

    Jan 25, 2004
    Likes Received:
    Trophy Points:
    I want to replace apache with nginx and I want to use logs from nginx on same way like from apache for every user, to process stats, to see last visitors from cpanel, BW graphs etc...

    In nginx config file for every virtual host I set log path to:
    access_log /usr/local/apache/domlogs/ main buffer=32k;
    access_log /usr/local/apache/domlogs/ bytes_log buffer=32k;

    this working fine until cpanel rotate logs, than all stop to work!!!

    How to fix this? Look like I must restart nginx after log rotation ( LogRotation ) but how to do that?

    Also, why apache have same logs on two locations, I have same logs on this two locations:


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice