Umleitungsstandort in Apache protokollieren

Umleitungsstandort in Apache protokollieren

Wenn Apache das standardmäßige „Kombinierte“ Protokollformat verwendet, wird eine 301-Antwort, die es zurückgibt, im Zugriffsprotokoll protokolliert. Das ist gut, aber es wird nur der Antwortcode protokolliert. Der Ort, zu dem der Client weitergeleitet wird, wird nicht protokolliert. Welches Argument muss ich dem CustomLog-Format hinzufügen, damit es diese Informationen protokolliert? Das war mir aus der Dokumentation nicht klar.

Antwort1

Laut Handbuch: %{Location}o(http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats)

%{Foobar}o Der Inhalt von Foobar: Kopfzeile(n) in der Antwort.

verwandte Informationen