Re: How to rewirte both URI and Host

2014-05-13 Thread Godbach
On 2014/5/13 16:05, Godbach wrote: On 2014/5/13 15:05, Willy Tarreau wrote: Hi Godbach, On Tue, May 13, 2014 at 03:01:58PM +0800, Godbach wrote: Hi Willy, If I want to rewrite both Host and URI in request, and they are also in the match conditions, can HAProxy implement this requirement? The

Re: How to rewirte both URI and Host

2014-05-13 Thread Godbach
On 2014/5/13 15:05, Willy Tarreau wrote: Hi Godbach, On Tue, May 13, 2014 at 03:01:58PM +0800, Godbach wrote: Hi Willy, If I want to rewrite both Host and URI in request, and they are also in the match conditions, can HAProxy implement this requirement? The ACLs are as below: acl match_host_u

Re: How to rewirte both URI and Host

2014-05-13 Thread Willy Tarreau
Hi Godbach, On Tue, May 13, 2014 at 03:01:58PM +0800, Godbach wrote: > Hi Willy, > > If I want to rewrite both Host and URI in request, and they are also in > the match conditions, can HAProxy implement this requirement? > > The ACLs are as below: > acl match_host_uri hdr_reg(Host) www.example.

How to rewirte both URI and Host

2014-05-13 Thread Godbach
Hi Willy, If I want to rewrite both Host and URI in request, and they are also in the match conditions, can HAProxy implement this requirement? The ACLs are as below: acl match_host_uri hdr_reg(Host) www.example.com ack match_host_uri /example.html But the reqrep should be used twice to rewrit