HAProxy community

Redirect based on url

I am new to haproxy and I looked at the documentation but can’t find a solution for the following problem.
I am migrating an apache reverse proxy. Now I have the following rule in apache

<Location ~^/store/(.)registry/(.)$>
ProxyPass https://host.domain.corp:9443/$1registry$2

How can I do this in haproxy ?

I know I have to create an acl:
acl valid_url url_reg

Thanks in advance,


Can you check this blog post: https://www.haproxy.com/fr/blog/howto-write-apache-proxypass-rules-in-haproxy/
And let us know if you still need help :slight_smile: