When a terminating SSL proxy is in use, the scheme and port received by
the web server may be different to the wwwroot.
When a reverse proxy is in use, the scheme, port, and host name received
by the web server may be different to the wwwroot.
In both of these cases the incoming request URI must be updated to use
the correct host scheme, and port. In the case of the reverse proxy,
the host name must also be updated.
In both cases the actual path is expected to be correct, and neither the
path nor query parameters should be modified.