httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Ganea <ganeadaniel1...@gmail.com>
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:
/__utm.gif?hgn&utma=trtretrer&utmd=hgjhgjg..

On Tue, Nov 2, 2010 at 10:08 PM, Daniel Ganea <ganeadaniel1979@gmail.com> 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message