Related

Denic

File comparison tools

Quad Boot

Linux commands

Print, E-mail

Featured

Enea (Ersan Elmasa)

Name

Baby

I AM GETTING MARRIED

Fuck biology

Things I would like to do before death

Newest

MySQL database replace

Award

Graduation

Internet privacy

SSI to php

Random

Hattrick - IV.17 - Ersan 4 : 0 PatkovachaLand

Denic

SSI to php

Honeymoon in Dubai III

Nostrifikacija

Apache access log file

Friday, November 09, 2007 17:10:31

Today I visited Apache's access log file to track one of the user's whereabouts. I was surprised at how much garbage and useless (to me) information log contained. Basically I did not want style sheet, javascript or images to be logged. One great way to do this is to set environment variable for filetypes that will not be logged and tell apache to log everything except previously set environment variable.
For example:
SetEnvIf Request_URI \.gif$ dontlog
SetEnvIf Request_URI \.jpg$ dontlog
SetEnvIf Request_URI \.jpeg$ dontlog
SetEnvIf Request_URI \.css$ dontlog
SetEnvIf Request_URI \.js$ dontlog
CustomLog logs/access_log common env=!dontlog

For more information visit: Apache.org pages.



Comments

Admir     Monday, September 15, 2008 20:23:25
đesi buraz
.............................................................

Your email address:


*Your name:


Your website:


*Please type number shown on the right side of the text box:
verification image, type it in the box

*Comment: