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

Yet another .htaccess nightmare

Quote Reply
Yet another .htaccess nightmare
Hello,

I have installed links2 & it works dandy, but I have tried six ways to sunday to get password protection on my admin directory with no luck, the files are being ignored, I think. I have gone the the Apache website to see what the problem is from an Apache perspective.

see: http://httpd.apache.org/docs/misc/FAQ.html#htaccess-work

Here is a slice of my http.conf file relevant to the Links directory I am trying to protect:

DocumentRoot /home/ai/HTTP/html
ErrorLog /home/ai/info/HTTP.logs/error.log
#This is used for reports, you may have multiple logs if necessary
CustomLog /home/ai/info/HTTP.logs/access.log combined
ScriptAlias /cgi-bin/ /home/ai/HTTP/cgi-bin/
<Directory /home/ai/HTTP/html>
AllowOverride All
Options Indexes
</Directory>
<Directory /home/ai/HTTP/cgi-bin/links2/admin>
AllowOverride All
Options Indexes
</Directory>

Here is my .htaccess file:

AuthName Welcome_Master
AuthType Basic
AuthUserFile /home/ai/httpd/cgi-bin/links2/admin/.htpasswd
AuthName ByPassword
require valid-user


What am I doing wrong???? I have been searching the net for days....BTW, why in the heck doesn't this admin program have this built in????? Most good CGI programs have at least minimal security, especially if we are expected to pay for this.

Thanks


Rod

Quote Reply
Re: Yet another .htaccess nightmare In reply to
Depending on what version of Apache you are using, your .htaccess file is improperly configured.

Go to the following web page to find out how to properly create the .htaccess file:

http://faq.web2010.com/htaccess.htm

Regards,

Eliot Lee
Quote Reply
Re: Yet another .htaccess nightmare In reply to
my .htaccess files looks like

AuthUserFile /home/account#/cgi-bin/links/admin/.htpasswd
AuthName "Access"
AuthType Basic
<limit GET>
require user esm1975
</limit>

my htpasswd file looks like

esm1975:xxxxxxxxxx

I'd like to say I knew what I was doing but I used a Lockit

Just copy it to the admin folder and run it from you browser

here's the link

http://www.highlandmedia.com/Downloads/LockIt.shtml

Gene