Log ALL request headers...

Hi,
I need a way to log ALL request headers for selected virtualhost... I know I can log selected header, but I need them all. This won't be easy, as as far as I know, in default, apache doesn't have that functionality, but maybe there is a way?
I need to log headers for requests in virtualhost of every file - image, js, css... everyhing, so writing a script in php (or so) won't do a work.
Best regards,
FlashT
LVL 3
flashtAsked:
Who is Participating?
 
flashtConnect With a Mentor Author Commented:
I would like to log ALL headers, even some custom ones... and I found solution myself...

log_forensic_module

Best regards,
FlashT
0
 
giltjrCommented:
Is there something special in the request header you need to see?
0
 
giltjrCommented:
If you know the specific header you want you can include it in a custom or combined log.

From: http://httpd.apache.org/docs/2.0/logs.html

     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
     CustomLog log/access_log combined

Will include the http header User-Agent and Referer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.