Hello!
I’m using HAProxy version 2.8.3-1ppa1~jammy on ubuntu 22.04.
When I’m using just one front and back end section, everything is fine.
But when I’m trying to add one more front and backend section, it crashes and reports error by restarting
I tried so many different changes, even I got help from ChatGPT but the result was the same.
I’m putting my configuration here to check.
Define the global settings
global
log /dev/log local0
log /dev/log local1 notice
maxconn 4096
daemon
defaults
log global
mode tcp
option tcplog
option dontlognull
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
Define the first frontend and backend for port 443
frontend https_frontend
bind *:443
mode tcp
tcp-request inspect-delay 5s
tcp-request content accept if { req_ssl_hello_type 1 }
use_backend https_backend if { req_ssl_sni -i example.com }
backend https_backend
mode tcp
server webserver1 192.168.1.100:443
Define the second frontend and backend for port 2096
frontend sni_frontend
bind *:2096
mode tcp
tcp-request inspect-delay 5s
tcp-request content accept if { req_ssl_hello_type 1 }
use_backend sni_backend if { req_ssl_sni -i another-example.com }
backend sni_backend
mode tcp
server mailserver1 192.168.1.200:2096
1 post - 1 participant