This is an Apache module that implements the server side of HAProxy's Proxy Protocol.
Note: as of Apache 2.4.30 this code has been merged into mod_remoteip, with the ProxyProtocol
directive renamed to RemoteIPProxyProtocol
.
You'll need the apache development packages installed (typically something like apache-devel
or apache2-dev
). Then simply running make
will create the shared library in .libs/mod_proxy_protocol.so
; make install
will attempt to install it in your current apache installation (you'll probably need to be root for this).
Add the following directive to your apache config to load the module
LoadModule proxy_protocol_module <path-to-module>/mod_proxy_protocol.so
or try running
apxs -a mod_proxy_protocol.c
For configuration details see the module docs
To properly secure Apache when using this on EC2 behind an ELB you'll probably want to do something like the following to ensure that only the ELB can provide the proxy protocol header while still being able to access the site directly (not via the ELB):
amazon-elb/amazon-elb-sg
)ProxyProtocolTrustedProxies
in mod_proxy_protocol.xml
)mod_proxy
)RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4