Hi, I am running docker containers services on my host ‘host-192-168-1-100.example.com’ which i can access like ‘host-192-168-1-100.example.com:port’.
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
# turn on stats unix socket
stats socket /var/lib/haproxy/stats
# utilize system-wide crypto-policies
ssl-default-bind-ciphers PROFILE=SYSTEM
ssl-default-server-ciphers PROFILE=SYSTEM
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
#---------------------------------------------------------------------
# main frontend which proxys to the backends
#---------------------------------------------------------------------
frontend http_front
bind *:80
redirect scheme https code 301 if !{ ssl_fc }
#frontend https_front
# bind *:443 ssl crt /etc/ssl/private/haproxy.pem
acl is_serviceone path_beg /node-1/serviceone
acl is_servicetwo path_beg /node-1/servicetwo
acl is_servicethree path_beg /node-1/servicethree
use_backend serviceone if is_serviceone
use_backend servicetwo if is_servicetwo
use_backend servicethree if is_servicethree
backend serviceone
server node-1 host-192-168-1-100:7443 check ssl verify none
backend servicetwo
server node-1 host-192-168-1-100:443 check ssl verify none
backend servicethree
server node-1 host-192-168-1-100:8443 check ssl verify none
all i see is this in my haproxy status
[WARNING] (25359) : Server servicetwo/node1 is DOWN, reason: Layer6 invalid response, info: "SSL handshake failure", check duration: 2ms. 0 active and 0 backup>
(25359) : haproxy version is 2.4.22-f8e3218
haproxy[25359]: [NOTICE] (25359) : path to executable is /usr/sbin/haproxy
haproxy[25359]: [ALERT] (25359) : backend 'servicetwo' has no server available!
This is how i am trying to do it and so when i try to access it using haproxy hostname which is a separate VM like host-192-168-1-102.example.com/node-1/serviceone similarly other two services but i cannot access it. I am very new to this and this is my first setup any help would be greatly appreciated.