Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

Need to leave only one subdirectory of a protected directory unprotected

I use .htaccess to protect a directory and all of its subdirectories.  But there is one subdirectory that I don't want to be protected.  I already have .htaccess and .htpasswd files set up for the parent directory, but I was unable to find anything regarding granting public access to a single subdirectory. I'm running Apache 2.0.50.
Thanks
0
perldog
Asked:
perldog
  • 2
1 Solution
 
hankknightCommented:
Put this in the .htacccess file of directory you wish to leave unprotected:

satisfy any
0
 
hankknightCommented:
If that doesn't work, you might need to put the following in (although it might be slower):

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName members
AuthType Basic

order deny,allow
deny from none
allow from all
satisfy any

0
 
perldogAuthor Commented:
satisfy any worked!  Thanks.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now