• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

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
0
flasht
Asked:
flasht
  • 2
1 Solution
 
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
 
flashtAuthor Commented:
I would like to log ALL headers, even some custom ones... and I found solution myself...

log_forensic_module

Best regards,
FlashT
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now