New answers tagged

1

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 example.com if { req.hdr(host) -i example.com } Now match for all subdomains with -m end: use_backend example.com if { req.hdr(host) -i -m end .example.com }


3

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