Sorry, I've:

vserver!70!rule!700!match!directory = /home/escuelasuperiordecoaching

instead of:

vserver!70!rule!700!match!directory = /home/escuelasuperiordecoaching.com

But nothing again :-/


On Sun, May 24, 2009 at 7:53 PM, Alvaro Lopez Ortega <[email protected]> wrote:
> On 24-may-09, at 19:32, Pablo wrote:
>
>> I can't protect a folder/virtualserver with a password.
>>
>> I read http://www.cherokee-project.com/doc/dev_cherokee.conf.html and
>> cherokee-admin documentation (obsolete, I haven't any password options
>> in security tab) and I don't know how to protect my
>> folders/virtualservers.
>>
>> I made a passwords.digest file, located in /etc/cherokee, with realm
>> "pruebas".
>>
>> To protect /home/cositas folder, I put that in cherokee.conf file:
>>
>> vserver!70!rule!700!auth!methods = digest
>> vserver!70!rule!700!auth!passwdfile = /etc/cherokee/passwords.digest
>> vserver!70!rule!700!auth!realm = pruebas
>> vserver!70!rule!700!match = /home/cositas
>> vserver!70!rule!700!match!directory = /home/cositas
>> vserver!70!rule!700!match!final = 0
>> vserver!70!rule!700!only_secure = 0
>
> That configuration snipped is incorrect. You already read the documentation
> so you already know, but I'd like to highlight it anyway: This configuration
> format hasn't been designed to be written by hand.
>
> These two lines ought to be:
>
>> vserver!70!rule!700!match = /home/cositas
>> vserver!70!rule!700!match!directory = /home/cositas
>
>
> vserver!70!rule!700!match = directory
> vserver!70!rule!700!match!directory = /secret
>
> Remember that the directory rule will match the web directory. Most probably
> you wanted to match a public web directory such as /secret where you wrote
> /home/cosillas. If you wanted to map it to /home/cosillas, you'd have to
> add: vserver!70!rule!700!document_root = /home/cosillas.
>
> BTW, cherokee-admin is your friend (it wouldn't have allowed you to make the
> mistake). :-)
>
> --
> Octality
> http://www.octality.com/
>
>
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to