apache authentication problem
From: axthree (nospam_at_replytonews.server)
Date: Mon, 9 Aug 2004 13:33:44 +0800
I have setup a restricted directory "\var\www\restricted" by using apache
"AuthType Basic" directive.
i.e. /etc/httpd/conf/httpd.conf and htpasswd command,
However, when I use IE6 to open the restricted webpage, I can't login
sucessfully. The authentication is failed and it said either the password is
incorrect or my browser is not supporting the function.
I did the following setup :-
# cd /
# cd /etc/httpd
# htpasswd -c htpasswd guest
---- and then i enter the password twice to confirm the creation of user
# mkdir /var/www/restricted
---- and the directory "/var/www/restricted" has been setup and is pointed
to by a subdomain name.
# vi /etc/httpd/conf/httpd.conf
----- I add the following Auth.... directive statement to the httpd.conf
file and restart the httpd service.
AuthName "Please enter username and password "
---- I save the httpd.conf and restart the httpd service.
Thank you for your help ....
PIII 450Mhz, 256MB Ram, 4GHD.