apache authentication problem

From: axthree (nospam_at_replytonews.server)
Date: 08/09/04


Date: Mon, 9 Aug 2004 13:33:44 +0800

Dear everybody,
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 :-
step1-
 # cd /
 # cd /etc/httpd
 # htpasswd -c htpasswd guest
---- and then i enter the password twice to confirm the creation of user
guest.

step 2-
# mkdir /var/www/restricted
---- and the directory "/var/www/restricted" has been setup and is pointed
to by a subdomain name.

step 3-
 # vi /etc/httpd/conf/httpd.conf
----- I add the following Auth.... directive statement to the httpd.conf
file and restart the httpd service.
<Directory "/var/www/restricted">
     AuthName "Please enter username and password "
     AuthType Basic
     AuthUserFile /etc/httpd/htpasswd
     Require valid-user
</Directory>
---- I save the httpd.conf and restart the httpd service.

Thank you for your help ....

My config:
RedHat 9
httpd-2.0.40-21
PIII 450Mhz, 256MB Ram, 4GHD.

 : )



Relevant Pages

  • Re: htpasswd
    ... > I need use htpasswd in Fedora 2. ... I guess so as you should add tag in the httpd config file, so httpd service ... This message has been scanned for viruses and dangerous content by MEC E-Mail Scanner, and is believed to be clean. ...
    (RedHat)
  • htpasswd
    ... I need use htpasswd in Fedora 2. ... is necessary start in the httpd service? ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)