Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4718

Webclusters, Haproxy to Nginx

$
0
0

Hello.

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 (192.168.101.1).
Operating system —> centos 8
Virtualization software —> VirtualBox

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

When I try to acces from a browser:
https://127.0.0.1:4430 - 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:
http://127.0.0.1:800 - it shows this:

haproxy.cfg configuration:

global
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 192.168.101.101:80
server web2 192.168.101.102:80

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4718

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>