My server is running Apache 2.4.18 with below config:


AuthType Digest
AuthName "Authenication Required"
AuthDigestProvider file
AuthUserFile /path/to/.htdigest
Require valid-user


Require all granted

I want password protection for all directories and files except for the share subdirectory. With the above configuration, a prompt for password authentication is shown when the user visits http://my.site/share/, although he can still see the content by cancling (or closing) the dialog.

What I want is to remove the prompt for password authentication for the share subdirectory. Is there anything wrong to my configuration?


Try adding AuthType None in /home/xxx/www/share/.htaccess.

  • Tried. No luck. – Danny Lin Mar 2 '18 at 19:44
  • Is the .htaccess file readable by Apache? – Andrew Schulman Mar 2 '18 at 19:50
  • Apache has read and write permission of all files below /home/xxx/www/ directory. You mean this? – Danny Lin Mar 3 '18 at 0:45

Try add:

Satisfy Any

Allow from all

To: /home/xxx/www/share/.htacces

  • Tried. No luck. – Danny Lin Mar 3 '18 at 13:41
  • Add 'require none' to this. – liske1 Mar 3 '18 at 15:04

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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