Hi,

The config validator does not seems to catch this error in syntax and Haproxy 
ignores the second part of the expression:

use_backend api.example.com if { req.hdr(host) -i example.com and path_beg /api 
}

the correct syntax is:
use_backend api.example.com if { req.hdr(host) -i example.com } { path_beg /api 
}

Is this intended ?

The documention is correct: 
https://www.haproxy.com/documentation/haproxy-configuration-tutorials/core-concepts/acls/#and-operator-(implied)



--

Tom Braarup
Senior IT-Administrator / Commercial and Tech Operations

​

Reply via email to