Question :
How to log headers when running Apache ?
Answer :
Configure Apache with the following module :
<IfModule log_forensic_module> ForensicLog /var/log/httpd/forensic_log </IfModule>
and the access request will be logged with access data and all the headers received by the Apache server in /var/log/httpd/forensic_log.