diff --git a/templates/horizon/config/httpd.conf b/templates/horizon/config/httpd.conf index 2370eb71..82d59822 100644 --- a/templates/horizon/config/httpd.conf +++ b/templates/horizon/config/httpd.conf @@ -51,7 +51,9 @@ LogLevel debug ## Logging ErrorLog {{ .LogFile }} ServerSignature Off - CustomLog {{ .LogFile }} "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" env=forwarded + SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded + CustomLog {{ .LogFile }} combined env=!forwarded + CustomLog {{ .LogFile }} proxy env=forwarded ## RedirectMatch rules RedirectMatch permanent ^/$ "{{ .horizonEndpoint }}/dashboard"