hi list
i detected a strange behavior in redirections from behind pound.
when i want my application or apache to redirect, the "https" part does
not get back to the browser when it should redirect on the same url but
with ssl. example:
https://foo.ch and http://foo.ch are handled correct by pound on X and
sent both to server Y with apache running. when i try to make a
redirection on Y from ex http://foo.ch/bar/ to
https://bar.ch the
browser redirects correctly to https://bar.ch.
when redirecting to
https://foo.ch the browser redirects only to http://foo.ch (ssl missing)
and ends up in a loop.
my setup:
- same behavior in pound 2.2.7 and 2.3.2
- pound config on IP X:
ListenHTTP
Address X
Port 80
End
ListenHTTPS
Address X
Port 443
Cert "/etc/pound/aaa.pem"
AddHeader "IS_SSL: SSL"
End
Service
BackEnd
Address Y
Port 80
TimeOut 60
End
End
- apache config on IP Y:
NameVirtualHost *
<VirtualHost *>
ServerName foo.ch
RewriteEngine On
RewriteCond %{HTTP:IS_SSL} !^SSL$
RewriteRule ^(.*) https://foo.ch/$1 [L,R]
...
i solved it for now, by redirecting twice: http://foo.ch ->
http://bar.ch -> https://foo.ch
is it a configuration problem or is pound doing something wrong?
thanks a lot.
Ivo Schindler
Dipl. Inf. Uni ZH
Programmierer, System-Entwickler und -Administrator
[...]
|