On 01/07/2016 04:06 PM, Eric Covener wrote:
On Thu, Jan 7, 2016 at 9:25 AM, Jan Kaluža <jkal...@redhat.com> wrote:
When httpd is running behind a reverse proxy and mod_remoteip is configured,
the correct client IP is logged (using %a in the LogFormat), but the proxy
IP is used by 'Require host .mydomain.net'. I would expect the host based on
IP provided by mod_remoteip to be used here.

Is this expected behaviour? Maybe the ap_get_remote_host method should use
req->useragent_addr instead of conn->client_addr to obtain the REMOTE_HOST.

what about "Require ip ..."?


This would work, but we should clarify that in documentation then, because both "Require ip" and "Require host" use term "remote client" in their description, but for "Require ip", mod_remoteip is respected, while for "Require host", the mod_remoteip is not respected.

I think this is really confusing.

Regards,
Jan Kaluza

Reply via email to