httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Ganea <>
Subject [users@httpd] Re: SetEnvIf and query string
Date Tue, 02 Nov 2010 21:12:45 GMT
i want custom logs for the n directory paths: directory1and
directory2, directoryn
the log format now
 LogFormat "%h %v %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" \"%{Cookie}i\"" test
 SetEnvIf Request_URI "^/directory1" customvar
 SetEnvIf Request_URI "^/__utm\.gif$" customvar
 CustomLog "|/usr/sbin/rotatelogs2
/app/logs/www/access/www.mywebsite.com_directory1_%Y%m%d.log 86400"
test env=customvar
query string for the gif:

On Tue, Nov 2, 2010 at 10:08 PM, Daniel Ganea <> wrote:
> Can i use SetEnvIf and query string for logging different directory path?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message