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 Sat, 28 Aug 2010 21:01:45 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49839

--- Comment #2 from Andrew Skalski <voltara@gmail.com> 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 1.2.3.4:49009]
Using 1.2.3.4 as client's IP by proxies 127.0.0.1
    [Sat Aug 28 16:54:28.524987 2010] [error] [pid 11585] [client
1.2.3.4:49009] File does not exist: /usr/local/apache2/htdocs/blah

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

    127.0.0.1 - - [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: 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