HAProxy community

Use https servers in backend section

hi everybody.
i have a problem in my way, i configure haproxy for load balance my https request through my clients, i add my certificate to frontend section but when i add https sites in backend section it doesn’t work.
these are my codes:

frontend firstbalance
bind *:443 ssl crt /etc/haproxy/pem.pem
bind *:80
option tcplog
mode http
default_backend webservers

backend webservers
balance roundrobin
mode http
server webserver1 x.x.x.x
server webserver2 x.x.x.x
i cant add an https site instead x.x.x.x servers.
anyown can help me?

Hi,
I believe you need to change the backend servers as so:

backend webservers
	balance roundrobin
	mode http
	server webserver1 x.x.x.x:443 ssl verify none
	server webserver2 x.x.x.y:443 ssl verify none

This is - of course - supposing you have self-signed certificates on your backend server.
If, on the contrary, you have valid certs you can swap verify with required as documented here.