HAProxy redirect HTTPS to HTTP
Posted
by
tarnfeld
on Server Fault
See other posts from Server Fault
or by tarnfeld
Published on 2012-12-08T22:35:35Z
Indexed on
2012/12/08
23:08 UTC
Read the original article
Hit count: 328
I'm using HAProxy as a load balancer and i'd like to redirect any traffic that comes in on 443 (HTTPS) to 80 (HTTP). My site doesn't support HTTPS at all and i'd rather just redirect users than cause any SSL warnings in browsers.
All I can find is using the redirect location <to>
syntax, but as far as I can tell that requires me to hard code the hostname. The load balancer receives connections for various hostnames so would like to keep it relative.
© Server Fault or respective owner