On Fri, May 2, 2014 at 2:05 AM, [email protected] <[email protected]> wrote:

> 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.
>


All paths begin with "/". I suspect that you don't want path_beg but just
path for an exact match.

  acl root path /


-Bryan

Reply via email to