You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Meadors <cl...@hereintown.net> on 2002/12/03 21:40:17 UTC

Re: [users@httpd] .htaccess file HAS TO BE in Document Directory

Wang, Mary Y wrote:
> Hi, 
> I have a question about .htaccess file.
> I have a DocumentRoot declared in the httpd.conf to be /usr/www.
> I also want to protect the /home/cvsroot directory .
> I declared 
> <Directory /home/cvsroot>
> AllowOverride AuthConfig
> </Directory>
> in the httpd.conf 

All that looks good.

> I also have .htaccess in the /home/cvsroot directory.

What is in that .htaccess file?

> Anyway, it didn't work, I didn't get the dialog to prompt for username and
> password.
> 
> The question is, can I protect /home/cvsroot directory, even if it is NOT
> under the DocumentRoot dirctory (/usr/www)?

Sure.  But are you Aliasing that directory to some other URL.  What I 
mean, is how do you get to /home/cvsroot from the web?


-- 
Chris


---------------------------------------------------------------------
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