Re: mod_remoteip does NOT change access-log IP

2013-01-24 Thread Stefan Fritsch
On Wednesday 23 January 2013, Reindl Harald wrote: hi LoadModuleremoteip_module modules/mod_remoteip.so RemoteIPHeaderX-Forwarded-For RemoteIPInternalProxy 127.0.0.1 10.0.0.4 10.0.0.103 91.118.73.4 PHP - fine, exactly how it should do:

Re: mod_remoteip does NOT change access-log IP

2013-01-24 Thread Reindl Harald
Am 24.01.2013 21:02, schrieb Stefan Fritsch: On Wednesday 23 January 2013, Reindl Harald wrote: hi LoadModuleremoteip_module modules/mod_remoteip.so RemoteIPHeaderX-Forwarded-For RemoteIPInternalProxy 127.0.0.1 10.0.0.4 10.0.0.103 91.118.73.4

Re: mod_remoteip does NOT change access-log IP

2013-01-24 Thread Reindl Harald
Am 24.01.2013 21:02, schrieb Stefan Fritsch: 10.0.0.103 - - [23/Jan/2013:17:01:53 +0100] GET /images/page/tidy_16.gif HTTP/1.1 304 - http://www.test.rh:8080/; Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 (-%) The problem seems to be ap_get_remote_host() which is

Re: mod_remoteip does NOT change access-log IP

2013-01-24 Thread Graham Leggett
On 24 Jan 2013, at 20:02, Stefan Fritsch s...@sfritsch.de wrote: The problem seems to be ap_get_remote_host() which is used by the %h used in the default access log format. But resolving an IP address that came via X-Forwarded-For does not make any sense anyway, because the server's view

Re: mod_remoteip does NOT change access-log IP

2013-01-24 Thread Reindl Harald
Am 25.01.2013 00:34, schrieb Graham Leggett: On 24 Jan 2013, at 20:02, Stefan Fritsch s...@sfritsch.de wrote: The problem seems to be ap_get_remote_host() which is used by the %h used in the default access log format. But resolving an IP address that came via X-Forwarded-For does not

Re: mod_remoteip does NOT change access-log IP

2013-01-24 Thread Reindl Harald
Am 25.01.2013 03:47, schrieb Reindl Harald: Am 25.01.2013 00:34, schrieb Graham Leggett: On 24 Jan 2013, at 20:02, Stefan Fritsch s...@sfritsch.de wrote: The problem seems to be ap_get_remote_host() which is used by the %h used in the default access log format. But resolving an IP address

mod_remoteip does NOT change access-log IP

2013-01-23 Thread Reindl Harald
hi LoadModuleremoteip_module modules/mod_remoteip.so RemoteIPHeaderX-Forwarded-For RemoteIPInternalProxy 127.0.0.1 10.0.0.4 10.0.0.103 91.118.73.4 PHP - fine, exactly how it should do: _SERVER[SERVER_ADDR] 10.0.0.99 _SERVER[SERVER_PORT] 8080

Re: mod_remoteip does NOT change access-log IP

2013-01-23 Thread Reindl Harald
however: http://vova-zms.blogspot.co.at/2012/07/install-modrpaf-with-apache-24.html patched mod_rpaf works with 2.4 but it would be really nice to have EXACTLY it's behavior in mod_remoteip because i see no way how i sell my customers chaning usages nor can i change the configuration of logging

Re: mod_remoteip does NOT change access-log IP

2013-01-23 Thread Reindl Harald
hmpf - with mod_rpaf on httpd 2.4 the access-log-ip is correct but the REMOTE_ADDR variable in PHP-scripts has the proxy-IP means i can not upgrade production to 2.4 because mod_remoteip will destory usages and mod_rpaf security because you have inside php-scripts a LAN address from the proxy