/ Zope / Apsis / Pound Mailing List / Archive / 2008 / 2008-10 / pound 2.4.3 + Redirect Loop

[ << ] [ >> ]

[ error copy server cont (again) / "Jacob ... ] [ Disabling SSLv2 / Albert <pound(at)alacra.com&g... ]

pound 2.4.3 + Redirect Loop
"Cam Roberts" <mail(at)cameronroberts.ca>
2008-10-06 21:39:43 [ FULL ]
Hi again,
   working with version 2.4.3, I'm encountering a problem with redirecting
users from https to http.

I'm setting a header:  AddHeader "X-Forwarded-Proto: https" and checking it
via PHP.  When the user is accessing a page that doesn't not require https I
redirect them with  php: header("location: http://....");

However, this doesn't have the expected effect, instead of redirecting to
the non-https version of the given page, it enters a redirect loop.  Firefox
reports:
*
Redirect Loop
Firefox has detected that the server is redirecting the request for this
address in a way that will never complete.*


Notably, the exact same code works fine with pound 2.0, it is only with the
new version that I see the redirect error.

Any advice would be greatly appreciated,
[...]
Attachments:  
text.html text/html 995 Bytes

Re: [Pound Mailing List] pound 2.4.3 + Redirect Loop
"Adam Lis" <adam.lis(at)gmail.com>
2008-10-07 08:29:34 [ FULL ]
2008/10/6 Cam Roberts <mail(at)cameronroberts.ca>:
[...]

RewriteLocation 0|1|2
    If 1 force Pound to change the Location: and Content-location:
headers in responses. If they point to the back-end itself or to the
listener (but with the wrong protocol) the response will be changed to
show the virtual host in the request. Default: 1 (active). If the
value is set to 2 only the back-end address is compared; this is
useful for redirecting a request to an HTTPS listener on the same
server as the HTTP listener.

AdamLis;

Re: [Pound Mailing List] pound 2.4.3 + Redirect Loop
"Anthony L" <GhostSniper007(at)hotmail.com>
2008-10-14 01:29:51 [ FULL ]
Hi,

What does the '0' do ?    (RewriteLocation 0|1|2)

And Cam, which valud did you have to use ?

Thanks, Anthony





----- Original Message ----- 
From: "Adam Lis" <adam.lis(at)gmail.com>
To: <pound(at)apsis.ch>
Sent: Tuesday, October 07, 2008 2:29 AM
Subject: Re: [Pound Mailing List] pound 2.4.3 + Redirect Loop

[...][...][...]

Re: [Pound Mailing List] pound 2.4.3 + Redirect Loop
mail(at)cameronroberts.ca
2008-10-14 05:28:03 [ FULL ]
I used 2, working like a charm.



On 10/13/08, Anthony L <GhostSniper007(at)hotmail.com> wrote:[...][...]
>>> it
>>> via PHP.  When the user is accessing a page that doesn't not
require
>>> https I
>>> redirect them with  php: header("location: http://....");
>>>
>>> However, this doesn't have the expected effect, instead of
redirecting to
>>> the non-https version of the given page, it enters a redirect
loop.
>>> Firefox
>>> reports:[...][...]
[...]

MailBoxer