You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2018/12/04 16:49:16 UTC

[Bug 55348] mod_remoteip updates the "ip" (%a), but "host" (%h) still reflects the connection's ip

https://bz.apache.org/bugzilla/show_bug.cgi?id=55348

--- Comment #8 from msporleder <ms...@gmail.com> ---
without patch:
[Tue Dec 04 16:20:43.162834 2018] [core:notice] [pid 8:tid 139745794620296]
AH00094: Command line: 'httpd -D FOREGROUND -C LoadModule remoteip_module
modules/mod_remoteip.so -C CustomLog /proc/self/fd/1 "%a, %{c}a, %h, %f" -C
RemoteIPHeader X-Forwarded-For'

curl localhost:8080/foo
172.17.0.1, 172.17.0.1, 172.17.0.1, /usr/local/apache2/htdocs/foo

curl -H'X-Forwarded-For: 1.1.1.1' localhost:8080/foo
1.1.1.1, 172.17.0.1, 172.17.0.1, /usr/local/apache2/htdocs/foo

with patch:
curl localhost:8080/foo
172.17.0.1, 172.17.0.1, 172.17.0.1, /usr/local/apache2/htdocs/foo

curl -H'X-Forwarded-For: 1.1.1.1' localhost:8080/foo
1.1.1.1, 172.17.0.1, 1.1.1.1, /usr/local/apache2/htdocs/foo


So %h is updated.  

Require behavior is based on the X-FF, right?

-- 
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