This module is used to treat the remote host which initiated the request as the originating remote host as identified by httpd for the purposes of authorization and logging, even where that remote host is behind a load balancer, front end server, or proxy server.
The module replaces the apparent remote (client) IP/hostname for
the request with the IP address reported in the request header
configured with the
Once replaced as instructed, this apparent IP address is then used
for %a
and %h
directives. It also determines the machine probed for an inetd
identity by
Apache identifies the client with the connection's remote_ip value, and the connection remote_host and remote_logname are derived from this value. These fields play a role in authentication, authorization and logging and other purposes by other loadable modules.
mod_remoteip replaces the true remote_ip with the advertised remote_ip as provided by a proxy, for every evaluation of the client that occurs in the server, and resets the remote_host and remote_logname values to trigger a fresh dns or ident query of the remote IP address.
When multiple, comma delimited remote IP addresses are listed in the header value, they are processed in Right-to-Left order. Processing halts when a given remote IP address is not trusted to present the preceeding IP address. The header field is updated to this remaining list of unconfirmed IP addresses, or if all IP addresses were trusted, this header is removed from the request altogether.
In replacing the remote_ip, the module stores the list of intermediate
hosts in a remoteip-proxy-ip-list note, which %{remoteip-proxy-ip-list}n
format token.
If the administrator needs to store this as an additional header, this
same value can also be recording as a header using the directive
The
The
The
The '#
' hash character designates a comment line, otherwise
each whitespace or newline separated entry is processed identically to
the
The
The
The
The '#
' hash character designates a comment line, otherwise
each whitespace or newline seperated entry is processed identically to
the