[nycphp-talk] override .htaccess?
csnyder
chsnyder at gmail.com
Thu Sep 30 11:21:06 EDT 2004
Yep, you can do it using a <FilesMatch> that matches just the files
you want to open up. The following allows students to download zip,
pdf, and doc files, but only instructors get directory listings and
anything else:
AuthType Basic
AuthName "Instructors Only"
AuthUserFile /usr/local/apache/conf/htpasswd
Require user training
<FilesMatch "\.(zip|pdf|doc)$">
Order allow,deny
Allow from all
Satisfy any
</FilesMatch>
The "Statisfy any" directive is the key to the whole thing.
More information about the talk
mailing list