megaspaz filesmatch
public text v1 · immutable<Directory "/var/www/html/protected_directory">
AllowOverride None
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI Includes
AuthType Basic
AuthName "And you are?"
AuthUserFile "/usr/local/Apache2.2.X/conf/passwd/sys-me/.htpasswd"
Require valid-user
# Add more image types as needed in the '()' seperated by '|' with no spaces between entries.
<FilesMatch "\.(gif|jpe?g|png)$">
Satisfy any
</FilesMatch>
Order allow,deny
Allow from all
</Directory>