x-man

Well-Known Member
Jan 25, 2004
118
1
166
Hi,
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/domain.com main buffer=32k;
access_log /usr/local/apache/domlogs/domain.com-bytes_log 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:
/usr/local/apache/domlogs/domain.com
and
/usr/local/apache/domlogs/username/domain.com

Thanks.
 
  • Like
Reactions: tbutler