Skip to content

Instantly share code, notes, and snippets.

AuthType Basic
AuthName "Restricted Area"
AuthUserFile /var/www/path/.htpasswd
# We are not allow group access so this is set to null
AuthGroupFile /dev/null
Require valid-user
# allow public access to the following resources
# allow access to the feeds folder
SetEnvIf Request_URI "(path/to/feeds/)$" allow
SetEnvIf Request_URI "(path/to/some_php_file\.php)$" allow