Re: ACL redirect using GET parameters

From: Willy Tarreau <w#1wt.eu>
Date: Wed, 14 Jul 2010 14:50:19 +0200


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 Received on 2010/07/14 14:50

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