Solved

Need to leave only one subdirectory of a protected directory unprotected

Posted on 2004-07-30
3
313 Views
Last Modified: 2008-02-26
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
Comment
Question by:perldog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
hankknight earned 175 total points
ID: 11679773
Put this in the .htacccess file of directory you wish to leave unprotected:

satisfy any
0
 
LVL 16

Expert Comment

by:hankknight
ID: 11679778
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
 
LVL 2

Author Comment

by:perldog
ID: 11679786
satisfy any worked!  Thanks.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question