Created
June 7, 2011 13:51
-
-
Save googleanalyticsresoneo/1012296 to your computer and use it in GitHub Desktop.
Apache logging conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Format spécifique : vhost,time,request protocol,final response code,request URI,response size,user-agent | |
LogFormat "\"%v\",\"%t\",\"%H\",\"%>s\",\"%r\",\"%b\",\"%{User-Agent}i\"" vhosts-bots | |
# Conditionne le log en fonction du user-agent | |
SetEnvIf User-agent Googlebot isabot | |
SetEnvIf User-agent Slurp isabot | |
SetEnvIf User-agent msnbot isabot | |
CustomLog "logs/site_access_isabot.txt" vhosts-bots env=isabot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment