Re: mod_proxy not handling redirects correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 24, 2008 3:24 PM, Axel-Stephane  SMORGRAV
<Axel-Stephane.SMORGRAV@xxxxxxxxxxxxxx> wrote:
> You need
>
> ServerName www.mysite.com
> ProxyPassReverse / http://www.host1.com/
> ProxyPassReverse / http://www.host2.com/
>
> What ProxyPassReverse does is simply rewriting the Location headers that match the second argument:
>
> If the Location header of the HTTP 30[12] (redirect) starts with http://www.host1.com/, it will be rewritten to http://www.mysite.com/.
> If the Location header of the HTTP 30[12] (redirect) starts with http://www.host2.com/, it will be rewritten to http://www.mysite.com/ as well.
>

 Thanks very much, that worked fine. I had the wrong concept about
ProxyPassReverse, now I see how it works.

--
Dani

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux