New answers tagged


You don't really need a regex (and remember they are expensive) but you do need to specify the domain name. Consider this: use_backend if { req.hdr(host) -i } Now match for all subdomains with -m end: use_backend if { req.hdr(host) -i -m end }


On Linux systems, the resolution is governed by /etc/nsswitch.conf that defines, for hostnames and other things, which sources of data to consult. A typical configuration has: hosts: files dns myhostname If you remove myhostname, your test does not work: (I have to remove dns as well because my local recursive nameserver has a zone for localhost and hence ...

Top 50 recent answers are included