HA Proxy URL Redirect hide


#1

Hello,

We have installed and configured an HA Proxy as Loadbalancer And Redirect

When calling a url should the Redirect

test.de ACL and REDIRECT

acl test_host hdr(host) -i www.test.de
acl cdh_url path -i /cdh
redirect location http://www.test.de:8080/test code 302 if test_host cdh_url

Remain hidden and only the requested URL is displayed in the browser

Has anybody here maybe a tip

Thanks and greetings Andy


#2

So its not a redirect, but a rewrite.

Use the http-request directive:
https://cbonte.github.io/haproxy-dconv/1.6/configuration.html#4.2-http-request