You need to put the redirect service inside the ListenHTTP, like below:
# Start pound as User with Group
User "pound"
Group "pound"
ListenHTTP
Address 192.168.1.12
Port 80
Service
Redirect : "https://something.cla.ch"
End
End
End
ListenHTTPS
Address 192.168.1.12
Port 443
HeadRemove "X-SSL-.*"
HeadRemove "X-Client-Verify.*"
Cert "/etc/ssl/certs/cla.pem"
End
Service
HeadRequire "Host: .*something.cla.ch.*"
BackEnd
Address internal.cla.ch
Port 80
End
Session
Type IP
TTL 300
End
End
Guillaume Memore wrote:
Hello pound people!
First message and pretty newbie with pound at the moment and I have a quick
question. Been reading the mailing already, but can't find a solution to my
problem.
Here's the thing :
I have 2 ways of connecting an internal web server. One is the "normal" was, the other
one is the "https" way.
So I declared everythihng need for the certificate, etc.
When I contact http://cla.ch, it goes to http://internal.cla.ch
When I contact https://cla.ch, it goes to https://internal.cla.ch
The thing is I'd like that requests coming to http://www.cla.ch go to
httpS://www.cla.ch
In one word, anthing asking for *.cla.ch* to be redirected to
https://www.cla.ch.
The thing is when I try to do that, my browser says there's a loop.
My config looks like that :
# Start pound as User with Group
User "pound"
Group "pound"
ListenHTTP
Address 192.168.1.12
Port 80
End
Service
Redirect : "https://something.cla.ch"
End
End
ListenHTTPS
Address 192.168.1.12
Port 443
HeadRemove "X-SSL-.*"
HeadRemove "X-Client-Verify.*"
Cert "/etc/ssl/certs/cla.pem"
End
Service
HeadRequire "Host: .*something.cla.ch.*"
BackEnd
Address internal.cla.ch
Port 80
End
Session
Type IP
TTL 300
End
End
When I do that, my browser says there's a loop and nor the http nor the https
proxying are working :-/
I'll be more than happy to have some hints, examples or where to look advices!
Thanks a lot in advance,
Guillaume
_________________________________________________________________
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010
--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.
--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.