You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Ganea <ga...@gmail.com> on 2010/11/02 21:08:09 UTC

[users@httpd] SetEnvIf and query string

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


[users@httpd] Re: SetEnvIf and query string

Posted by Daniel Ganea <ga...@gmail.com>.
i solved the problem setting in google analytics the path for not using
query string:

  _gaq.push(['_setCookiePath', '/directory1/']);
  _gaq.push(['_setLocalGifPath', '/directory1/__utm.gif']);

[users@httpd] Re: SetEnvIf and query string

Posted by Daniel Ganea <ga...@gmail.com>.
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 <ga...@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