RE: HaProxy ACL

From: Georgi Georgiev <gogo#dirbg.com>
Date: Fri, 6 Feb 2009 13:23:23 +0200


Sorry - I found my mistake :.  

redirect prefix https://pay.xxx.bg if pay_xxx ! payment  

now everything is working  

Regards,

 Georgi Georgiev      

From: Georgi Georgiev [mailto:gogo#dirbg.com] Sent: Friday, February 06, 2009 12:28 PM To: haproxy#formilux.org
Subject: HaProxy ACL  

Hi to all,

 I'd like to create acl path match in my frontend section  

The configuration is :  

frontend test_one

        bind 192.168.63.10:80

        mode http

        log global

        clitimeout 300000

        maxconn 10000  

        acl payment path_beg /payments/  

        acl pay_xxx hdr_beg(host) -i pay.xxx.bg

        acl pay_xxx hdr_beg(host) -i www.pay.xxx.bg  

        use_backend www_php4 if payment  

        redirect prefix https://pay.xxx.bg if pay_xxx  

        capture request header Host len 20

        default_backend www_php4  

So problem here is that when user access http://pay.xxx.bg/payments/xxxxx it always goes to redirect option :  

How can I managed that ?  

Best Regards,

 Georgi Georgie  

No virus found in this incoming message. Checked by AVG i www.avg.com
Version: 8.0.233 / Virus Database: 270.10.16/1928 i Release Date: 01/31/09 20:03:00 Received on 2009/02/06 12:23

This archive was generated by hypermail 2.2.0 : 2009/02/06 13:30 CET