apache authentication exclude directory

Posted on 2009-12-21
Medium Priority
Last Modified: 2012-06-22

I have authentication on a virtual host in apache:
<Directory "/var/www/html/john">
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/httpd/conf/access
Require user John

inside this virtualhost is a folder called Files

How can I exclude the authentication from the Files directory?

I want unrestricted access to /Files, but the authentication must apply to everything else
Question by:zattz
1 Comment
LVL 15

Accepted Solution

ncoo earned 2000 total points
ID: 26095396
I assume you already have authentication setup for everything else?

In you Files directory create an ".htaccess" file with the following contents:
Allow from all
Satisfy Any

Open in new window


Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

840 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