httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49839] mod_remoteip: ErrorDocument causes proxy's IP to be logged
Date Sat, 28 Aug 2010 21:01:45 GMT

--- Comment #2 from Andrew Skalski <> 2010-08-28 17:01:43 EDT ---
My reduced test case is based on the stock httpd.conf, which is not configured
with virtual hosts.  So yes, the configuration is in the global context.

I will poke around at it a bit more today.  Here's what I have so far:

It looks like remoteip_modify_connection gets called twice when an
ErrorDocument is triggered.  The first pass through, it successfully modifies
the remote IP; the second pass, it reverts back to the proxy IP.

  Breakpoint 1, remoteip_modify_connection (r=0x1aec3a0) at mod_remoteip.c:222

    [Sat Aug 28 16:53:33.551855 2010] [info] [pid 11585] [client]
Using as client's IP by proxies
    [Sat Aug 28 16:54:28.524987 2010] [error] [pid 11585] [client] File does not exist: /usr/local/apache2/htdocs/blah

  Breakpoint 1, remoteip_modify_connection (r=0x1ae89e8) at mod_remoteip.c:222 - - [28/Aug/2010:16:52:38 -0400] "GET /blah HTTP/1.1" 404 45

(Don't mind the timestamps; I was single-stepping through with gdb.  The log
entries all came from the same HTTP request.)

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message