Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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