Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How-to exclude subdirs when password protecting dirs via .htaccess

Status
Not open for further replies.

linuxtricks

IS-IT--Management
May 24, 2000
111
US
The subject line says everything. =)

I need to know how to _exclude_ all of the subdirectories when I enable password protection on a particular directory using a .htaccess file.

[red]If I enable password protection on:
domain.com/dir1/

-I do not want to be prompted to enter a password when I access:
domain.com/dir1/dir2/[/red]

My .htaccess file looks like this:

---------------------
AuthName "PRIVATE AREA"
AuthType Basic
AuthUserFile /usr/local/apache/some/dir/users
AuthGroupFile /usr/local/apache/some/dir/groups

require group private
---------------------

Many thnx!

I HATE BEING A NEWBIE!
-grumpy smurf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top