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
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