/ Zope / Apsis / Pound Mailing List / Archive / 2004 / 2004-05 / Pound + Location Redirects

[ << ] [ >> ]

[ Memory Leaks / "Alexander Meis" ... ] [ dedicated backends and fall-backs possible? / ... ]

Pound + Location Redirects
Sandy Pleyte <sandy(at)ibuildings.nl>
2004-05-17 16:26:34 [ FULL ]
Hi,

I have a problem with Pound and Location Redirects
When I use the following rewrite example on a server without pound, it 
works correct, but when I place this on a server behind pound, it goes 
wrong.

RewriteCond %{HTTP_HOST}        ^www\.(ibuildings|ibuilding)\.net [NC]
RewriteCond %{REQUEST_URI}      ^/$
RewriteRule ^(.*)$              http://ibuildings.nl/updateurl [R]

So when you browse to www.ibuildings.net it should redirect to 
http://ibuildings.nl/updateurl.
But at this moment, it redirects to 
http://www.ibuildings.net/updateurl.

After some more debugging, it's not only with apache redirects, but when 
I do a header redirect from PHP, I have the same problem, the HTTP_HOST 
will never change ????
Is this default behaviour of Pound, or did I miss something ?


Regards,

Sandy[...]

Re: Pound + Location Redirects
Robert Segall <roseg(at)apsis.ch>
2004-05-17 18:06:52 [ FULL ]
On Monday 17 May 2004 16.26, Sandy Pleyte wrote:[...]

It is normal Pound behavior IF both hosts resolve to the same address or if 
they both are served by the same Pound. This was done in order to enable 
regular redirects to HTTP/HTTPS and authentication-related redirects.

If it is a problem for you you can serve the two separately (e.g. make sure 
either ibuildings.nl or ibuildings.net are not front-ended by Pound OR they 
have separate instances of Pound running).[...]

MailBoxer