The LogFormat
directive allows you to set a custom format for your log files, including any headers you're interested in, such as:
\"%{Referer}i\" \"%{Location}o\"
However, some headers may be used more than once in a single HTTP request:
Cache-Control: no-cache
Cache-Control: no-store
Apache only outputs the first of these headers in the log. Is there any way of logging out all of the values?
You can't do it dynamically with default Apache log configuration, you have to use
mod_log_forensic
: https://httpd.apache.org/docs/2.4/fr/mod/mod_log_forensic.html