81d237038b
X-Forwarded-For gives the address of the client which connected to the proxy X-Forwarded-Port gives the port the client connected to on the proxy (e.g. 80 or 443) X-Forwarded-Proto gives the protocol the client used to connect to the proxy (http or https) X-Forwarded-Host gives the content of the Host header the client sent to the proxy. I am not sure if rewriting Host header to $host is a good idea.