Search code examples
apachelogginghttp-headershttpserver

How to log all HTTP Headers in Apache http server 2.4.43 for a specific port


I have tried modifying the httpd.conf, but none of them yield the result.


Solution

  • You can enable dumpio logging to log HTTP request and response header.

    DumpIOInput On
    DumpIOOutput On
    LogLevel dumpio:trace8
    

    You can refer https://httpd.apache.org/docs/2.4/mod/mod_dumpio.html