[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [raq2] - password protected directory



--- "Andrew D. Mussaw" <amussaw@xxxxxxxxxxxxxxxxx> wrote:
> Stupid question here...how would one go about password protecting a
> subdirectory on a web site (e.g. www.domain.com/protected).  I have a
> client that's moving over and he has a password protected directory with
> multiple usernames/passwords.  Any help would be appreciated.

You can do this using a standard .htaccess file inside the /protected
directory. You need to add one line at the top to turn off AuthPAM:

AuthPAM_Enabled off
AuthUserFile /somewhere/over/the/rainbow/way/up/high/.htpasswd
AuthName KeepOutYaPeskyBooger
AuthType Basic

Paul

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com