Webclusters, Haproxy to Nginx


Can someone please help me maybe I didn’t configure correctly or HAproxy shouldn’t run on loopback address?

I am trying to build a 3 VMs web-cluster setup with http-to-https redirection and self-signed certificate so that the internet browser shows “trusted”.

HA proxy is used as load balancer (
Operating system —> centos 8
Virtualization software —> VirtualBox

I have prepared a NAT Network - - added the following port forwarding rules: port 800 —> port 80 port 4430 —> port 443

When I try to acces from a browser: - it round robins but in the address bar it shows the image attached.

The biggest problem is that I can’t reach the webservers through: - it shows this:

haproxy.cfg configuration:

tune.ssl.default-dh-param 2048

frontend httpsandhttps
http-request redirect scheme https unless { ssl_fc }
bind *:80
bind *:443 ssl crt /etc/haproxy/web.pem
timeout client 60s
mode http
default_backend allservers

backend allservers
timeout connect 10s
timeout server 100s
balance roundrobin
mode http
server web1
server web2