Log ALL request headers...

Posted on 2009-12-27
Last Modified: 2012-08-13
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,
Question by:flasht
    LVL 57

    Expert Comment

    Is there something special in the request header you need to see?
    LVL 57

    Expert Comment

    If you know the specific header you want you can include it in a custom or combined log.


         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.
    LVL 3

    Accepted Solution

    I would like to log ALL headers, even some custom ones... and I found solution myself...


    Best regards,

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting ( to http…
    Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now