This is covered in the documentation (http://www.cherokee-project.com/doc/config_virtual_servers.html#domain_names) and in the FAQ entry "Why are my nicknames not matched, while *.example.com does work?" (http://www.cherokee-project.com/doc/other_faq.html#faq19)

I know it isn't the most intuitive behavior. How would you suggest to address this on the admin interface?

On 04/10/10 09:10, Koen Vermeer wrote:
On Mon, 2010-10-04 at 14:56 +1100, David Taylor wrote:
If I have the following vServers:
wiki.example.com (with Host Match, Method = Match Nickname)
example.com (with Host Match, Method = Wildcards, *example.com)
... then I visit http://wiki.example.com in my browser, Cherokee loads
the second vServer, not the first.
If I change the Host Match of the first vServer so that have the following:
wiki.example.com (with Host Match, Method = Wildcards, "wiki.example.com")
example.com (with Host Match, Method = Wildcards, "*example.com")
... then I visit http://wiki.example.com in my browser, Cherokee loads
the first vServer.
I'm not an expert, and I don't think the documentation or the interface
is very clear, but if I understand it correctly, it actually works in
two passes. First, Cherokee evaluates the 'domain list', which I think
means the wildcard/regex. Only if no match was found, it does a second
pass on the nicknames.
The thing that is confusing is probably that when you select 'method =
match nickname', you think it internally just copies the nickname to the
domain list. Apparently, you should think of 'method = match nickname'
as 'method = none', because it seems to simply do nothing.

I struggled with this, and now that I know I'm not alone, I feel this
should be addressed, either in the internals of the software, or in the
user interface.

Best,
Koen


_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee


--
[email protected]
http://unixwars.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to