You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tom Cat <st...@gmail.com> on 2006/03/13 17:31:54 UTC

[users@httpd] password protected dir with unprotected subdir

I've set up one directory to be password protected.

Alias /work "/work1/"
<Directory "/work1">
	Options Indexes MultiViews
	AllowOverride None
        Order allow,deny
        AuthUserFile /etc/httpd/htpasswords
        AuthType Basic
        AuthName "Work1"
        require user strycat
	Allow from all
</Directory>

This is great and works like it should

Now I want another alias to point to the /work1/open subdir and to be
unprotected.

Alias /demo "/work1/open/"
<Directory "/work1/open">
	Options Indexes MultiViews
	AllowOverride None
        Order allow,deny
	Allow from all
</Directory>

As I feared the first directory (/work1)  kicks in and requires a
user.  Is there something I can do to unprotect just that one subdir
or will I need to move it?

Thanks in advance.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] password protected dir with unprotected subdir

Posted by Robert Ionescu <ro...@googlemail.com>.
Tom Cat wrote:
> Alias /demo "/work1/open/"
> <Directory "/work1/open">
> 	Options Indexes MultiViews
> 	AllowOverride None
>         Order allow,deny
> 	Allow from all
> </Directory>
> 
> As I feared the first directory (/work1)  kicks in and requires a
> user.  Is there something I can do to unprotect just that one subdir
> or will I need to move it?

use
Satisfy any

in your <Directory "/work1/open"> section.

-- 
Robert

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org