@satya wrote:
Hi,
I am trying to simple route all the HTTP requests made to the server to redirect as HTTPS to external server.
Can you please help with the it?
Code:
frontend localhost
bind :80
option tcplog
mode tcp
default_backend nodesbackend nodes
mode tcp
option ssl-hello-chk
server sv1 10.192.x.x:443Also 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.curl -X GET http://localhost/health
curl: (52) Empty reply from servercurl -X GET https://sv1/health
{“status”:“UP”,“diskSpace”:{“status”:“UP”,“total”:1073741824,“free”:913141760,“threshold”:10485760}}
Posts: 1
Participants: 1