On 04/10/10 19:17, Taher Shihadeh wrote:
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?

Does anyone know the reasoning behind that behaviour?

Why aren't virtual server matches processed in one pass in order? That would be most intuitive to end users ... or, at least, this end user. :-)

Why are regular expressions and wildcards processed before nicknames, which are essentially exact matches? Nicknames are the default match method of new virtual servers, but not the first match tried, which leads to confusion. I would have thought it'd be preferable to test exact matches first, for sake of speed.

I already have the answer to my initial question, but now I'm interested in the design decisions behind this behaviour.

Thanks.

Cheers,
David.


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



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

Reply via email to