Hello, mod_perl users!

I am trying to use Apache 2.4 + mod_perl behind a reverse proxy,
which sets the X-Forwarded-For header. Apache itself supports
this via mod_remoteip, which mostly works[1]. However, from the
mod_perl point of view, the remote address is set only in $ENV{REMOTE_ADDR},
but apparently not in $r->connection->get_remote_host.

        Is it possible to make Apache2::Connection compatible
with mod_remoteip/X-Forwarded-For? Thanks,

-Yenya

[1] The exception is special handling of private addresses, which seem
to be hardcoded in mod_remoteip:
https://lists.apache.org/list?us...@httpd.apache.org:2024-1:mod_remoteip

-- 
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| https://www.fi.muni.cz/~kas/                        GPG: 4096R/A45477D5 |
    We all agree on the necessity of compromise. We just can't agree on
    when it's necessary to compromise.                     --Larry Wall

Reply via email to