As I interpret it, the 'method = nickname' thing actually means 'method
= nothing'. A quick fix would thus be to actually call it like that. 

However, I think it would be more intuitive if it would work like this:

Use the nickname as a fallback. Use whatever is specified in the 'host
match' tab as the normal matching rule. This implies that 'method =
nickname' acts like 'method = wildcard' with the nickname copied to the
accepted domains. Thus, it would match the nickname on the first pass.
You could add a 'method = none' option to get the old behavior, where
the nickname is only used at the second pass.

Given that I do not know the reasons for the current behavior, the above
may not be what you want. If so, let me know how it conflicts with the
current rationale, and I'll try to think of an alternative solution.

Best,
Koen


On Mon, 2010-10-04 at 10:17 +0200, 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?
> 
> 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