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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

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

--- Comment #8 from msporleder <[hidden email]> ---
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: [hidden email]
For additional commands, e-mail: [hidden email]