View Single Post
Old 06-23-2007, 02:32 PM  
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
I don't see why it shouldn't be possible, the "AuthUserFile" directive in Apache references a full path and filename, which means you should be able to use it more than once.

Here's an example, you would place this in .htaccess in both directories you wish to protect.

AuthName "member area"
AuthType Basic
AuthUserFile /path/to/htpasswd
require valid-user
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote