Re: Redirect HTTP to HTTPS and HTTPS to HTTP

2011-01-16 Thread XANi
Hi, In that config easies way is to check what is the source IP of incoming connection, if it comes from 127.0.0.1 (or w/e. is ur stunnel server address) its HTTPS else its HTTP. Like acl is_ssl src 127.0.0.1 and then use it in redirect. I did similiar thing, but with lighttpd as frontend and con

Redirect HTTP to HTTPS and HTTPS to HTTP

2011-01-16 Thread Henri Storn
Hello, I have a server hosting multiple Web sites. I use HAProxy, Stunnel and HTTPD : HTTP -> HAProxy (80) -> HTTPD (8080) HTTPS -> Stunnel (443) -> HAproxy (8443) -> HTTPD (8080) I want a single Web site is accessible via HTTPS. The others are only accessible by HTTP. I want to do the follo