HAProxy community

I'm newbie, how to redirect https to https


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
server web-second

I would appreciate your help !!! thank’s



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).