apache authentication problem
From: axthree (nospam_at_replytonews.server)
Date: 08/09/04
- Next message: Madhusudan Singh: "Problem bringing up network interfaces with slackware"
- Previous message: Shmuel (Seymour J.) Metz: "Re: Remote diagnosis of missing /var/log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
: )
- Next message: Madhusudan Singh: "Problem bringing up network interfaces with slackware"
- Previous message: Shmuel (Seymour J.) Metz: "Re: Remote diagnosis of missing /var/log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|