This is an old revision of the document!


Apache

Don't log yourself

You can exclude your IP addresses or/and the specific user agent of your browsers :

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Addr "192\.168\.1\.4" dontlog
SetEnvIf User-Agent "meandmyself" dontlog

CustomLog ${APACHE_LOG_DIR}/mysite.fr-access.log combined env=!dontlog

You can customize you user agent in Firefox by setting the key general.useragent.override in about:config. You can check your user agent with a website like http://whatsmyuseragent.com/.

With this method you can also avoid logging robots or some pages, but if you use a good and well configured log parser (like awstats) it will do this job (even for your IP addresses, but not for the user agent).

software/apache.1295953343.txt.gz · Last modified: 2013/09/19 16:43 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0