Re: ACL redirect using GET parameters

From: Guy Knights <guy#desgames.com>
Date: Wed, 14 Jul 2010 10:02:00 -0700


Thanks Willy, that's just what I was after. Thanks also for your work creating haproxy, it's a great piece of software.

Regards,
Guy

On Wed, Jul 14, 2010 at 5:50 AM, Willy Tarreau <w#1wt.eu> wrote:
> On Tue, Jul 13, 2010 at 05:24:15PM -0700, Guy Knights wrote:
>> Hi all,
>>
>> I was wondering if it's possible to redirect requests using an HTTP
>> query string value? For example, if a request comes in for
>> www.example.com/index.php?mode=1 then redirect to a different
>> location?
>
> Yes, check the ACL keyword in the doc, you can use for instance "url_reg"
> and match a regex in the URL, then perform your redirect if the ACL
> matches.
>
> Regards,
> Willy
>
>

-- 
Guy Knights
Systems Administrator
DES Games
www.desgames.com
guy#desgames.com
Received on 2010/07/14 19:02

This archive was generated by hypermail 2.2.0 : 2010/07/14 19:15 CEST