Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging HTTP header info using Apache HTTP

 
S Venkatesh
Ranch Hand
Posts: 464
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

How do i log the HTTP Header info that the Apache HTTP Server recevies from the client? I am currently using Apache HTTP 2.0.59 version.

Thanks
Venkatesh S
 
Stu Thompson
Hooplehead
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are probably using the predefined common or combined log file format at the moment. You could do a custom format by selecting the fields you are interested in from http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#formats

Many of the loggable headers are predefined (%...h is Remote host, %...H is request protocol, etc.) but you can get other headers out with %...{Foobar}i (where {Foobar} is your header name) log format entries.

Follow the instructions for mod'ing your httpd.conf here: http://httpd.apache.org/docs/2.0/logs.html
 
S Venkatesh
Ranch Hand
Posts: 464
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much !! i was searching for the same
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic