backend nodes
mode tcp
option ssl-hello-chk
server sv1 10.192.x.x:443
Also I am trying to use curl (below command) and it should redirect to https://v1/health to fetch the data.
The https url works without any issue, so there is no connectivity issue from the machine. But the localhost url
doesn’t work.
Would you like to redirect (send a redirect message to the client to let him connect directly the https on port 443), then remove the backend and just put this in your port 80 frontend:
redirect scheme https
(you don’t even need the if !{ ssl_fc } condition, as in a port 80 frontend you already know it’s not encrypted).
Or would you like to “route” the traffic to your secure backend, by stripping SSL from it. Then you need to add the ssl (and probably verify none) keyword to your server sv1 line (so that SSL is used to connect to it):