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 192.168.1.100:443
server web-second 192.168.1.101:443

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

thank’s for your help !!!

this is my last configuration and it’s works

frontend https_web
bind *:443
mode tcp
tcp-request inspect-delay 5s
tcp-request content accept if { req_ssl_hello_type 1 }

use_backend test_backend if { req_ssl_sni -i test.dominio.com }

backend test_backend
server firts ip:443 check

thank’sssss