Skip to content

Commit b45e585

Browse files
Merge pull request #647 from fmount/customlog
Fix client IP logging in Neutron API VirtualHost
2 parents 846b517 + da592d5 commit b45e585

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

templates/neutronapi/httpd/10-neutron-httpd.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
## Logging
99
ErrorLog /dev/stdout
1010
ServerSignature Off
11-
CustomLog /dev/stdout combined
11+
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
12+
CustomLog /dev/stdout combined env=!forwarded
13+
CustomLog /dev/stdout proxy env=forwarded
1214

1315
## Request header rules
1416
## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader

0 commit comments

Comments
 (0)