2008/10/6 Cam Roberts <[EMAIL PROTECTED]>:

> 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:

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;

--
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.

Reply via email to