Skip to content

Commit 5fb73fa

Browse files
Merge pull request #510 from fmount/customlog
Fix client IP logging in Keystone API VirtualHost
2 parents e5d1d19 + cc425c1 commit 5fb73fa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

templates/swiftproxy/config/httpd.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ TimeOut {{ .APITimeout }}
3232
## Logging
3333
ErrorLog /dev/stdout
3434
ServerSignature Off
35-
CustomLog /dev/stdout combined
35+
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
36+
CustomLog /dev/stdout combined env=!forwarded
37+
CustomLog /dev/stdout proxy env=forwarded
3638

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

0 commit comments

Comments
 (0)