haproxy version is 2.2.9-2+rpi1+deb11u2
unknown keyword ‘repirep’ in ‘backend’ section
How to replace regrep ?
reqrep ^([^\ :])\ /(.) \1\ /ui/\2
global
daemon
maxconn 256
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend http-in
bind *:80
default_backend servers
backend servers
reqrep ^([^\ :]*)\ /(.*) \1\ /ui/\2
server server1 127.0.0.1:1880 maxconn 32