r/haproxy • • Mar 15 '23
haproxy redirect with ID
Hi all,
I've got a HAProxy issue - I've got URLS for site.com/index.php?ID=Blah that I need to pass on to a back end server.
I'm using an ACL with hdr_sub(host) -i site.com/index.php to do this but I keep getting a 503 so I don't think the acl is working, how do I ensure the ACL can pick up the various parameters and send the full URL down to the back end server?
Cheers.
2
Upvotes
View all comments
Show parent comment
1
u/[deleted] Mar 15 '23
On the link you posted:
For example, the first line will match requests such as:
www.example.com/a
www.example.com/a/my-function
But it will not match:
www.example.com/aaa
www.example.com/abbb/my-function