HAProxy community

Proxy for folder

Hello, i don’t can setup redirect to server 2 if url have /blog

try

frontend https_in
mode tcp
option tcplog
bind *:443
default_backend https_server1
acl blog path_beg /blog
use_backend https_server2 if blog

backend https_server1
mode tcp
option tcplog
option ssl-hello-chk
server server3 192.168.88.3:443

backend https_server2
mode tcp
option tcplog
option ssl-hello-chk
server server4 192.168.88.3:3000

I need route /blog -> https_server2 , server use http2

You are passing encrypted HTTPS traffic through haproxy without terminating it. You cannot access encrypted data.

it’s not real? Need use https server level? Or?

What Lukas has told you is that if you are not terminating the https session on haproxy, it won’t be able to parse the URL for /blog since URL is encrypted as well. You need to terminate the SSL session on haproxy and then you can have an acl for path_beg -i /blog to route it to a specific backend server.