[olug] website authentication with apache

Adam Lassek alassek at techie.com
Wed Mar 7 21:08:49 UTC 2001


It works now, thanks for your help!

------Original Message------
From: "Jeremy Bettis" <jeremyb at hksys.com>
To: <olug at bstc.net>
Sent: March 7, 2001 7:25:30 PM GMT
Subject: Re: [olug] website authentication with apache


Easy easy....  Put these lines into your .htaccess file:

AuthType Basic
AuthName "My Site Name"
AuthUserFile /somewhere/outside/the/docroot/mypasswords.txt
AuthGroupFile none
require valid-user
AuthPAM_Enabled off



Then run htpasswd:

htpasswd -c /somewhere/outside/the/docroot/mypasswords.txt username

To add additional usernames and passwords just leave off the -c.
--
Jeremy Bettis -- Software Development Manager
Hickman-Kenyon Systems, Inc.
jeremyb at hksys.com

----- Original Message -----
From: "Adam Lassek" <alassek at techie.com>
To: <olug at bstc.net>
Sent: Wednesday, March 07, 2001 12:54 PM
Subject: [olug] website authentication with apache


> I'm running two different websites on the webserver at work, one which is
a
> public website and one that needs to be private to the company. I need to
> make the webserver ask for a username and password in order to access the
> private website--it doesn't even have to be very fancy, in fact there will
> be only one login and password that everyone will use. I know that I need
to
> use a .htaccess file in the directory of the private website in order to
do
> this, but how do I set that up? Does anyone know?
>
>
> ______________________________________________
> FREE Personalized Email at Mail.com
> Sign up at http://www.mail.com/?sr=signup
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: olug-unsubscribe at bstc.net
> For additional commands, e-mail: olug-help at bstc.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net



More information about the OLUG mailing list