HAProxy community

I'm newbie, how to redirect https to https

#1

I’m newbie with haproxy and I need redirect to https a https server, this is the configuration

frontend https_certificat_parcdesalutmar
bind *:443 ssl crt /etc/haproxy/certificats/test.cat.pem
timeout client 1m

use_backend test_backend if { req_ssl_sni -i test }
default_backend test_backend

backend test_backend
balance roundrobin
server web-first 192.168.1.100:443
server web-second 192.168.1.101:443

I would appreciate your help !!! thank’s

0 Likes

#2

You don’t mean redirect, what you mean is use a HTTPS servers as a backend.

You can do that by specifying the ssl keyword on the server line, along with a ca-file directive used for certificate verification of the backend server (or set verify none if you don’t want to verify the backend server certificate).

0 Likes