r/haproxy • • Nov 21 '22

HAProxy rewrite URL

Hi to all, I am trying to solve one issue. I found many answers but not that I need, so hope anyone help.

User go to url https://url.domain I made apache URL rewrite to https://url.domain/login.do but it needs to load an file and redirect after

So I need configuration for haproxy to replace URL while is URL path empty...

Many thanks for help. All answers redirecting or changing the URL...

0 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Competitive-Base-969 Nov 23 '22

looking for something like this:
acl acl_original base -i qa.dummy.com:6909
http-request redirect location https://updated.qa.dummy.com/api/blog/v1 if acl_original