Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 90.185.193.91
<Files "/upload/add_image">
Allow from any
</Files>
Satisfy Any
share|improve this question

1 Answer 1

up vote 2 down vote accepted

Try this:

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

Your Answer

 
discard

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.