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

Problem 1: Password Protecting Admin directory

Quote Reply
Problem 1: Password Protecting Admin directory
How do I password protect my Admin directory. I have links to the point where I can run admin.cgi, but the first thing I see is the message telling me to pwd protect my admin dir. I looked in my Linux book but could not find any info on doing this.

Atho
Quote Reply
Re: Problem 1: Password Protecting Admin directory In reply to
You won't find it in a Linux book necessarily. You need to look at documentation for the httpd server your system is running. For example, the Apache web server uses .htaccess and .htpasswd files to do it.

What type of web server are you using? If it is Apache, see http://faq.web2010.com/htaccess.htm .

I hope that helps.

[This message has been edited by Bobsie (edited May 15, 1999).]
Quote Reply
Re: Problem 1: Password Protecting Admin directory In reply to
You can also go to http://www.pauservice.de/kost3.htm
there you enter in the first field your complete path to the admin dir in the second field you username and in the third field you pw. After clicking on the radio button. then you copy the first red lines in a file named .htaccess and the last red line in a file called .htpasswd. These files you have to copy in your admin dir.
The site is in German but very usefull.
Quote Reply
Re: Problem 1: Password Protecting Admin directory In reply to
That's a great tip. Thanks!

------------------
Will
Webmaster
FishHoo! Search index for Fishermen
http://www.fishhoo.com
Quote Reply
Re: Problem 1: Password Protecting Admin directory In reply to
That has worked, I now have a pwd protected admin directory, which should render the whole setup a lot safer.

Thanks,
Atho
Quote Reply
Re: Problem 1: Password Protecting Admin directory In reply to
My two cents . . .

A lot of people on this board seem to be having a problem with this -- I did too.

For those running on a virtual server:

Reading the NCSA tutorial will only get you so far. All these poor guys are wondering why you're having such a problem and keep referring you there. But there are modifications you have to make to the NCSA instructions in order to create password protection for a directory on a virtual server. Refer to your ISP's documentation on the correct path to use in a Telnet session for the creation of access and password files.

If all else fails, place the access information in your server's main access configuration file (normally access.conf, if you have it; httpd.conf if you don't -- but again, refer to your ISP's documentation for your own virtual setup) and restart the server.

I felt my way through this on my own. Hope this helps some of my fellow virtual administrators. Smile

Quote Reply
Re: Problem 1: Password Protecting Admin directory In reply to
ChanFan,

Your virtual server setup is not necessarily the same as others. My system is running on a virtual server and I have no problems putting .htaccess or .htpasswd files anywhere. My virtual server acts completely independent of the server it is hosted on or any other virtual server that may exist on the same machine.

It all depends on how the virtual server is configured and how competent the people are who do the configuration.
Quote Reply
Re: Problem 1: Password Protecting Admin directory In reply to
My server acts the same way, Bobsie -- independent of all others.

And you're right -- all virtual setups are not the same. That's why I said (twice Wink) you must check with your ISP to determine exactly how your server is configured.

Point is: Virtual server administrators may have to do something a little differently than what the NCSA tutorial describes -- God knows I did -- and that may account for many of the problems people are having with getting this task accomplished.