Skip to content

Commit c9c3dbc

Browse files
Merge pull request #723 from fmount/customlog
Fix client IP logging in Keystone API VirtualHost
2 parents 981eddc + 19495ef commit c9c3dbc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

templates/keystoneapi/config/httpd.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ CustomLog /dev/stdout proxy env=forwarded
4141
## Logging
4242
ErrorLog /dev/stdout
4343
ServerSignature Off
44-
CustomLog /dev/stdout combined
44+
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
45+
CustomLog /dev/stdout combined env=!forwarded
46+
CustomLog /dev/stdout proxy env=forwarded
4547

4648
{{- if $vhost.TLS }}
4749
SetEnvIf X-Forwarded-Proto https HTTPS=1

0 commit comments

Comments
 (0)