Skip to content

Commit 6aa1c6f

Browse files
committed
httpd conf: Replace SERVER_NAME with Host
1 parent c954619 commit 6aa1c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/etc/httpd/conf/httpd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ LogLevel warn
189189
# The following directives define some format nicknames for use with
190190
# a CustomLog directive (see below).
191191
#
192-
LogFormat "%h (for %{X-Forwarded-For}i as %{SERVER_NAME}e) %v %U %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
192+
LogFormat "%h (for %{X-Forwarded-For}i as %{Host}i) %v %U %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
193193
LogFormat "%h %l %u %t \"%r\" %>s %b" common
194194

195195
<IfModule logio_module>

0 commit comments

Comments
 (0)