Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Protected directories do not work!

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


anoopalias01 at gmail

Nov 9, 2009, 8:54 PM

Post #1 of 4 (468 views)
Permalink
Protected directories do not work!

Password protected directories doesnt work in cherokee or i dont get how we
configure that.

I have a main domain with docu-root : /home/domain/httpdocs

I have a program installed on a subfolder : /home/domain/httpdocs/wiki

What i need is to protect wiki folder with a .htpasswd file ;so anyone
accessing domain/wiki should be prompted a passwd.

This never works.

Under Behaviour I added a regular expression rule:

^/wiki/(.*)$

Handler :none

and under security setup authentication with a apache htpaswd file.

made this rule the first one (even before php) as I need password protection
to work first.

But when i browse domain/wiki password protection doesnt work :(

What is the technique to provide password protection to a subfolder . both
the document root and the subfolder have a mix of php and html files

Thanks,
Anoop

--
Anoop P Alias (PGP Key ID : 0x014F9953)
GNU system administrator
http://GnuSys.net


bjesus at gmail

Nov 9, 2009, 10:01 PM

Post #2 of 4 (436 views)
Permalink
Re: Protected directories do not work! [In reply to]

Maybe you should try to do it with a directory based rule, such as
/wiki. I remember getting it to work that way.

On 11/10/09, Anoop Alias <anoopalias01 [at] gmail> wrote:
> Password protected directories doesnt work in cherokee or i dont get how we
> configure that.
>
> I have a main domain with docu-root : /home/domain/httpdocs
>
> I have a program installed on a subfolder : /home/domain/httpdocs/wiki
>
> What i need is to protect wiki folder with a .htpasswd file ;so anyone
> accessing domain/wiki should be prompted a passwd.
>
> This never works.
>
> Under Behaviour I added a regular expression rule:
>
> ^/wiki/(.*)$
>
> Handler :none
>
> and under security setup authentication with a apache htpaswd file.
>
> made this rule the first one (even before php) as I need password protection
> to work first.
>
> But when i browse domain/wiki password protection doesnt work :(
>
> What is the technique to provide password protection to a subfolder . both
> the document root and the subfolder have a mix of php and html files
>
> Thanks,
> Anoop
>
> --
> Anoop P Alias (PGP Key ID : 0x014F9953)
> GNU system administrator
> http://GnuSys.net
>

--
Sent from Gmail for mobile | mobile.google.com

Yo'av Moshe
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


me at pigmej

Nov 9, 2009, 10:54 PM

Post #3 of 4 (429 views)
Permalink
Re: Protected directories do not work! [In reply to]

Cherokee does not have .htaccess support ( apache like ). You must define
protection in admin. Just add rule for /wiki folder, and go to security tab.

On 2009-11-10 05:54, "Anoop Alias" <anoopalias01 [at] gmail> wrote:

Password protected directories doesnt work in cherokee or i dont get how we
configure that.

I have a main domain with docu-root : /home/domain/httpdocs

I have a program installed on a subfolder : /home/domain/httpdocs/wiki

What i need is to protect wiki folder with a .htpasswd file ;so anyone
accessing domain/wiki should be prompted a passwd.

This never works.

Under Behaviour I added a regular expression rule:

^/wiki/(.*)$

Handler :none

and under security setup authentication with a apache htpaswd file.

made this rule the first one (even before php) as I need password protection
to work first.

But when i browse domain/wiki password protection doesnt work :(

What is the technique to provide password protection to a subfolder . both
the document root and the subfolder have a mix of php and html files

Thanks,
Anoop

--
Anoop P Alias (PGP Key ID : 0x014F9953)
GNU system administrator
http://GnuSys.net

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


anoopalias01 at gmail

Nov 9, 2009, 10:57 PM

Post #4 of 4 (440 views)
Permalink
Re: Protected directories do not work! [In reply to]

Yes, I was referring to the admin one itself.

Seems like the directory rule works.I was trying the Regular expression one
:)

Thanks everyone.

Cherokee rocks!

2009/11/10 Jędrzej Nowak <me [at] pigmej>

> Cherokee does not have .htaccess support ( apache like ). You must define
> protection in admin. Just add rule for /wiki folder, and go to security tab.
>
> On 2009-11-10 05:54, "Anoop Alias" <anoopalias01 [at] gmail> wrote:
>
> Password protected directories doesnt work in cherokee or i dont get how we
> configure that.
>
> I have a main domain with docu-root : /home/domain/httpdocs
>
> I have a program installed on a subfolder : /home/domain/httpdocs/wiki
>
> What i need is to protect wiki folder with a .htpasswd file ;so anyone
> accessing domain/wiki should be prompted a passwd.
>
> This never works.
>
> Under Behaviour I added a regular expression rule:
>
> ^/wiki/(.*)$
>
> Handler :none
>
> and under security setup authentication with a apache htpaswd file.
>
> made this rule the first one (even before php) as I need password
> protection to work first.
>
> But when i browse domain/wiki password protection doesnt work :(
>
> What is the technique to provide password protection to a subfolder . both
> the document root and the subfolder have a mix of php and html files
>
> Thanks,
> Anoop
>
> --
> Anoop P Alias (PGP Key ID : 0x014F9953)
> GNU system administrator
> http://GnuSys.net
>
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee
>
>


--
Anoop P Alias (PGP Key ID : 0x014F9953)
GNU system administrator
http://GnuSys.net

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.