Hi,

i'm trying a basic redirect with HAProxy:


frontend http


     acl is_domain hdr_dom(host) -i abc.example.com

     acl root path_reg ^$|^/$


     redirect location http://abc.example.com/?code=1234  code 301  if
is_domain  root


Unfortunately this ends up in a redirect loop.

I suspect the "?" - character, when i escape this character with "\" the
loop problem is fixed, but now HAProxy redirects to "
http://abc.example.com/\?code=1234";


Thanks,

Bjoern

Reply via email to