|
Home > Archive > Apache Server configuration support > July 2006 > logfile problem, setEnvIf and logrotate
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
logfile problem, setEnvIf and logrotate
|
|
| Andreas Born 2006-05-22, 1:16 pm |
| Hi,
I hope I'm not too offtopic here, since my question refers more likely
to a problem with logrotate than to apache config itself...
I split one of my vhost logs into two parts, depending on the url which
was requested. For this I use the SetEnvIf-directive:
e.g.:
SetEnvIf Request_URI "^/abc/" queryabc
CustomLog /logs/access_abc combvabc env=queryabc
CustomLog /logs/access_std combvstd env=!queryabc
However, this works great, but now logrotate rotates both logfiles
twice!
Does anybody know about this problem, or can point me to the right
direction?
Any help would be appreciated!
Andy
| |
|
| "Andreas Born" <Andreas.Born@gmx.de> schreef in bericht
news:4dec17F198p4rU1@individual.net...
> e.g.:
> SetEnvIf Request_URI "^/abc/" queryabc
> CustomLog /logs/access_abc combvabc env=queryabc
> CustomLog /logs/access_std combvstd env=!queryabc
>
> However, this works great, but now logrotate rotates both logfiles
> twice!
>
> Does anybody know about this problem, or can point me to the right
> direction?
What's in your /etc/logrotate.d/apache2?
HansH
|
|
|
|
|