Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Password protection under Linux Apache

Quote Reply
Password protection under Linux Apache
I installed the program on a Linux box running Apache. Can someone walk me through what is needed to password protect the /links/admin directory? I am having a hard time figuring it out.
Quote Reply
Re: Password protection under Linux Apache In reply to
I think its like this
Fist step make a text file .htaccess
open it and put this in it
<blanks before first line>

AuthUserFile /full/path/to/links/admin/pass.pass
AuthGroupFile /dev/null
AuthName 'Protected Area'
AuthType Basic

<limit GET PUT POST>
require valid-user
</limit>
Save that and close it, now make a pass.pass file(simple text file using any text editor)
upload both of them into the admin dir.
Now log in to telnet and cd into you /links/admin dir.
Type this.
htpasswd pass.pass your_user_name where I say your_user_name this will be the user name you want to use.
Now Telnet will say.
Adding user your_user_name
New password: type you pass here
then it will say
Re-type new password: reenter your pass
Thats it,
Thanks
Joey

------------------
Links is HOT! Get it and you will LOVE IT!


[This message has been edited by Joey Bost (edited December 21, 1998).]