Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a .htaccess with authorization, that runs for all parts of an internal website. However, I need to remove the required authorization for one single location.

I've tried using <Files> and <FilesMatch> in .htaccess to set "Allow Any" for the location, but it doesn't work.

My .htaccess looks like this:

AuthName     "Who are you ?"
AuthUserFile /var/www/.htpasswd
AuthType     Basic
Require valid-user
Order deny,allow
Deny from all
Allow from
<Files "/upload/add_image">
Allow from any
Satisfy Any
share|improve this question
up vote 2 down vote accepted

Try this:

<Files "/upload/add_image">
Allow from all
Satisfy Any
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.