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
