httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49839] mod_remoteip: ErrorDocument causes proxy's IP to be logged
Date Tue, 19 Jul 2011 16:04:38 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49839

--- Comment #4 from Andrew Skalski <voltara@gmail.com> 2011-07-19 16:04:38 UTC ---
Are there any plans to apply this bug fix?  I have been using the attached
patch for almost a full year without any problems.

Reproducing the bug is straightforward:

1) Compile 2.3.12-beta from sources

2) Add the following to httpd.conf (global scope is OK):
    Listen 8080
    RemoteIPHeader X-IP
    RemoteIPTrustedProxy 127.0.0.0/8 ::1
    ErrorDocument 404 /index.html

3) Start up httpd and watch the access_log:

# The /index.html file exists, so this works fine:
$ curl -H'X-IP: 11.22.33.44' http://localhost:8080/index.html
11.22.33.44 - - [19/Jul/2011:11:21:52 -0400] "GET /index.html HTTP/1.1" 200 45

# However, anything that hits the ErrorDocument does not:
$ curl -H'X-IP: 11.22.33.44' http://localhost:8080/asdfasdfasdf
127.0.0.1 - - [19/Jul/2011:11:22:55 -0400] "GET /asdfasdfasdf HTTP/1.1" 404 45

# And here is how it behaves when multiple, comma-separated addresses are
given...

# Correct behavior:
$ curl -H'X-IP: 2000::1, 11.22.33.44' http://localhost:8080/index.html
11.22.33.44 - - [19/Jul/2011:12:01:59 -0400] "GET /index.html HTTP/1.1" 200 45

# Incorrect behavior:
$ curl -H'X-IP: 2000::1, 11.22.33.44' http://localhost:8080/asdfasdfasdf
2000::1 - - [19/Jul/2011:12:02:24 -0400] "GET /asdfasdfasdf HTTP/1.1" 404 45

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message