The module overrides the client IP address for the connection with the information supplied by the upstream proxy in the proxy protocol (connection) header.
This overridden useragent IP address is then used for the
%a
and %a
format strings. The underlying client IP of the connection
is available in the %{c}a
format string.
The
While this directive may be specified in any virtual host, it is important to understand that because the proxy protocol is connection based and protocol agnostic, the enabling and disabling is actually based on ip-address and port. This means that if you have multiple name-based virtual hosts for the same host and port, and you enable it any one of them, then it is enabled for all them (with that host and port). It also means that if you attempt to enable the proxy protocol in one and disable in the other, that won't work; in such a case the last one wins and a notice will be logged indicating which setting was being overridden.