On 16-ene-09, at 23:43, Koen Vermeer wrote:

> I'm pretty new to Cherokee, but I cannot get the following to work.  
> I'm
> trying to achieve that Cherokee asks for a username/password  
> whenever a
> page is first requested from the virtual server. I tried adding a rule
> to the top of the list, but I have no idea what this rule should look
> like. Can anyone provide me with some steps about how to achieve this?

I'd need more details on what you are actually want to do.

I mean, if you wanted to authenticate the .php files, you'd just have  
to enter the "Extension php" rule, go to 'Security', and choose an  
authentication mechanism (in order to point the web server where and  
ho your login/password pairs are stored).

In case you wanted to require authentication for the whole domain,  
you'd have to add a new rule on top of the list, uncheck 'final', and  
configure just the 'Security field' as in the previous case. The match  
of the rule should be "Directory /", so every single request matches  
with it.

It's very important to put the rule in the very first position, to  
uncheck final (so evaluation continues once the security field is  
read), and to fill out just the security details (no handler). That  
should do it.

--
Octality
http://www.octality.com/

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

Reply via email to