Hi, We are using HAProxy 1.5dev22 on linux machine. Added acl rule for geolocation feature for routing traffic based on country code . But getting below error when trying to start haproxy
[ALERT] 077/050608 (16394) : parsing [WebsiteHAProxy.cfg:31] : error detected while parsing ACL 'acl_in' : unknown fetch method '%[src' in ACL expression '%[src,'. [ALERT] 077/050608 (16394) : parsing [WebsiteHAProxy.cfg:37] : error detected while parsing switching rule : no such ACL : 'acl-in'. [ALERT] 077/050608 (16394) : Error(s) found in configuration file : WebsiteHAProxy.cfg [ALERT] 077/050608 (16394) : Fatal errors found in configuration. Please find below haproxy.cfg we are using for haproxy 1.5 global log 127.0.0.1 local0 log 127.0.0.1 local1 notice maxconn 25000 quiet pidfile /var/run/haproxy-private.pid defaults #geolocate src /etc/haproxy/geolocation.txt mode http log global option httplog option tcplog option dontlognull option forwardfor stats enable stats refresh 10 stats auth test:test123 retries 3 option redispatch maxconn 25000 contimeout 5000 clitimeout 50000 srvtimeout 50000 option httpclose frontend homemonitor bind 0.0.0.0:80 acl acl_in %[src, map_ip(/etc/haproxy/geolocation.txt)] -m str -i IN use_backend homemonitor_appserver_us if acl-in default_backend homemonitor_appserver listen webfarm81 bind 0.0.0.0:82 mode http balance source cookie SESSIONID prefix option forwardfor option httpchk HEAD /comp_homeview.html HTTP/1.0 acl acl-in req.hdr(X-Country) -m str -i IN use_backend homemonitor_appserver_us if acl-in server compApp_apache_uk 10.48.139.12:80 cookie compApp check #HTTPAPACHE backend homemonitor_appserver mode http balance source cookie SESSIONID prefix option forwardfor option httpchk HEAD /comp_homeview.html HTTP/1.0 server compApp_apache_uk 10.20.10.12:80 cookie compApp check #HTTPAPACHE backend homemonitor_appserver_us mode http balance source cookie SESSIONID prefix option forwardfor option httpchk HEAD /comp_homeview.html HTTP/1.0 server compApp_apache_us 10.10.50.20:80 cookie compApp check #HTTPAPACH Please help us to configure haproxy.cfg for 1.5 Regards, Kavita