Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remoteip: add option to enable PROXY proto for specific clients only #487

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

TimStallard
Copy link

This PR implements a config directive which is effectively the opposite of the existing RemoteIPProxyProtocolExceptions (reusing the code already in place for that). It allows PROXY protocol to be enabled for only a specific set of IPs, which can be useful for example when a webserver is both directly accessible to clients and also behind a reverse proxy.

I've been using this for IPv6-only webservers where IPv6 clients connect directly but IPv4 clients go through a reverse proxy. I believe this also addresses part of bug https://bz.apache.org/bugzilla/show_bug.cgi?id=64433 which describes a similar use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant