Hi,
I am also quite new in HAproxy. I have a configuration to do where I have an URL that hsould be accessed
haproxy.network.nt/web
Target is
webserver.network.nt
In my config fie haproxy.cfg I have added
frontend haproxy-main
bind *.65200
option forwardfor
defailt_backend iis_webserver
backend iis_webserver
http-request set-path “%[path,regsub(^/web/,/)]”
server webserver webserver.network.nt:65200 check
That works in one way, I write in the browser
haproxy.network.nt/web/some URL/page1.html
then click on a link and get that in my browser
haproxy.network.nt/page2.html
but it should be
haproxy.network.nt/some URL/page2.html
I tried
http-response set-path /web/%[path]
but this is not working. Am I thinking into a wrong direction?