HAproxy - Redirect issue - Uri Variables ?
Posted
by
Justin
on Server Fault
See other posts from Server Fault
or by Justin
Published on 2011-03-13T22:53:22Z
Indexed on
2011/03/14
0:11 UTC
Read the original article
Hit count: 558
I'm using haproxy 1.5dev3 and I was wondering if there is any possible way to grab uri variables from a request to reappend the query on the end of a redirect url?
What I'm trying to do is redirect from:
http://www.domain.com/page/example.htm?id=1234567
to:
http://www.domain.com/frame/newpage.cfm?id=1234567
redirect prefix doesn't work properly as it tries to append /page/example.htm to the end of the redirect url. Can I do some sort of rewrite to accomplish this? It would be awesome if you could use uri and queries as variables for redirection/pool selection like on F5. Please help...Thanks!
© Server Fault or respective owner