Hello, *Summary*: http:5000 to https:54443 with relative_uri as it is. (change is in scheme and port number).
Situation is when user hits: "*http://*mps-haproxy.int:*5000*/internalapi/connectionstring" haproxy redirects scheme but uses the same port of http i.e. "*https*:// mps-haproxy.int:*5000*/internalapi/connectionstring" *Question: I want to redirect scheme with ssl port which is 5443*. Could you please let me know how can I do this (so my url becomes: https://mps-haproxy.int:5443/internalapi/connectionstring)? 1. I did not find the way to set the custom port in "redirect scheme ..." 2. I did not find the way to set the reltive_uri dynamically in "redirect location:. I want "redirect location https://mps-haproxy.int:5443/<relative_uri>" - which end user expects when requested over non-ssl *snip from haproxy.config:* ... ... frontend http bind *:*5000* #redirect scheme https if !{ ssl_fc } #redirect location https://mps-haproxy.int:5443 default_backend api reqadd X-Scheme:\ http frontend https bind *:*5443* ssl crt /etc/haproxy/certs/ulti-cloud.pem default_backend api reqadd X-Scheme:\ https ... ... I do not want user to redirect to ssl context root by default, if user is requesting "http://mps-haproxy:5000/helps/index.html" then ssl redirect should go to "https://mps-haproxy:5443/helps/index.html" - notice port is different. I am using: HA-Proxy version 1.5-dev25-a339395 2014/05/10 Thanks, - raavi