Mailing List Archive

IP address taking precedence in virtual server host matching
I'm currently using Cherokee 1.2.99 and have noticed that when multiple
virtual servers are defined, the IP addresses for Host Matching appear to
take precedence over any other Host Match condition (eg wildcards, regex,
nickname, and order of virtual servers). I can understand why this is most
likely going to be the case, but can someone confirm this is the correct
behaviour I should be seeing.

At present, there's documentation about nickname matching and order of
evaluation for virtaul servers @
http://www.cherokee-project.com/doc/other_faq.html#faq19, and also some
details on the page about Virtual Servers, but nothing specific how the
order of which individual Host Match conditions are evaluated.

For instance, it would be useful to know if I have four virtual servers all
for foobar.example.com:

- one matching by regex to foobar.example.com
- one matching by wildcard to *foobar.example.com
- one matching by nickname to foobar.example.com
- one matching by this host's IP

what would be the expected order of evaluation, assuming they're defined in
order in the virtual servers list? From the documentation, I know the
nickname would come last, but what of the other three?

Cheers,
David