1

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?

Marcus Downing
  • 788
  • 10
  • 18
  • maybe you can change it for `Cache-Control: no-cache, no-store` ? ;) – Froggiz Dec 02 '15 at 10:20
  • That was just one example, there are other headers like `Authorization` that may be repeated. Even if merging them is the answer, before you can change them you need to find them, hence the desire to log them. – Marcus Downing Dec 02 '15 at 10:25

1 Answers1

1

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

Froggiz
  • 3,043
  • 1
  • 19
  • 30