Solved

Need to leave only one subdirectory of a protected directory unprotected

Posted on 2004-07-30
3
300 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

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 Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now