[Pound Mailing List] http to https redirect from Apache backend

Narcis Garcia <[email protected]> Fri, 10 Feb 2017 20:33:26 +0100
Newsgroups gmane.comp.web.pound.general
Message-ID <[email protected]>
[using Pound 2.6 with Apache backends]

Hello, I've been trying to use .htaccess in Apache sites with this:

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]

But client browser says "the server is redirecting the request for this
address in a way that will never complete"
I've been doing many tests and it seems to be a problem between Apache's
redirect and Pound frontend.
This pound installation only receives traffic for port 80.
If I try:
RewriteRule ^ https://www.example.net%{REQUEST_URI} [L,R=301,NE]
Redirects perfectly because target URL doesn't point to this Pound service.

What can I do to allow this type of redirection with Apache's rewrite?

Thanks.

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