Thanks for your help, but nothing :-( My cherokee.conf:
vserver!70!directory_index = index.php,index.html vserver!70!document_root = /home/escuelasuperiordecoaching vserver!70!domain!1 = www.escuelasuperiordecoaching.es vserver!70!domain!2 = www.escuelasuperiordecoaching.com vserver!70!keepalive = 1 vserver!70!logger = combined vserver!70!logger!access!buffsize = 16384 vserver!70!logger!access!filename = /var/log/cherokee/cherokee.access vserver!70!logger!access!type = file vserver!70!logger!error!filename = /var/log/cherokee/cherokee.error vserver!70!logger!error!type = file vserver!70!nick = escuelasuperior 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 = directory vserver!70!rule!700!match!directory = /home/escuelasuperiordecoaching.com vserver!70!rule!700!match!final = 0 I added document_root and two lines you sent me, but now, restarting with cherokee-admin front-end, it says: Could not launch the server Something happened while launching the server. The error reported by the server follows: Cherokee feels panic! BTW, where's the hell is configured folder protect in cherokee-admin??? :D. I saw it in documentation, but in my 0.99.9 cherokee-admin, Security tab hasn't that option. Thanks 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
