httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] RewriteRule : How to retain Apache Host in the url
Date Fri, 12 Nov 2010 10:31:51 GMT
On Fri, Nov 12, 2010 at 10:16 AM, Sai A <arialwinds@gmail.com> wrote:
> More specifically, look at the
> ProxyPass and ProxyPassReverse directives that are present in mod_proxy.
>
> There is another directive called PreserveProxyHost that
> you'll have to set to on and the URL won't change in the address bar (HTTP
> header).
>
> Sai

That isn't what *ProxyPreserveHost* does. If ProxyPreserveHost is set
to true, then the proxied request will retain the same Host header as
the original request to the proxy. If it is not set, mod_proxy_http
will replace the originally requested host header with the host
specified in the ProxyPass line.

See http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost
for more details.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message