Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4745

Redirecting HTTP to HTTPS

$
0
0

@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 nodes

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.

curl -X GET http://localhost/health
curl: (52) Empty reply from server

curl -X GET https://sv1/health
{“status”:“UP”,“diskSpace”:{“status”:“UP”,“total”:1073741824,“free”:913141760,“threshold”:10485760}}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>