Apache 2 Basic Authentication?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all:

I have tried the "Basic Authentication" with Apache 2 of RH9.0 the same way
as I did in "Apache 1.3 of RH7.3" but got the opposite result; it didn't
work.

Here is what I did:

- In /etc/httpd/conf/httpd.conf, I put:
<Directory "/var/www/html">
    . . .
    AllowOverride AuthConfig
</Directory>

- In the file /var/www/html/.htaccess, I wrote:

AuthName "Top Web Secrets"
AuthType Basic
AuthUserFile /etc/httpd/.htpasswd
Require valid-user

- Then, I added a user as follows:
$ htpasswd -c /etc/httpd/.htpasswd john

These no longer work with Apache 2 of RH9.0 (Authorization failed).

Please, can someone tell me what I miss?

Regards,
Vidol





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux