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

Consult for redirecting http to https

$
0
0

Hi,

I am trying to redirecting http traffic to https via HA-proxy 2.2.3 and here is my config:

frontend    simple_webapp    
    mode    http
    bind    *:5006
    bind    *:5443  ssl crt /root/Downloads/simple_webapp_all.pem
    http-request redirect scheme https unless { ssl_fc }
    default_backend simple_webapp

backend simple_webapp
    balance     roundrobin
    server	    centos8-1 <server ip>:5006	check 
    server	    centos8-2 <server ip>:5006	check

If I typed https://:5443 in the chrome, it will go to the backend page successfully. However, if I used http://:5006 instead, Chrome will post error “ERR_SSL_PROTOCOL_ERROR”.

Please correct me if there is any incorrect config.

Thanks.

8 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4714

Trending Articles



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