А почему он пароль опознавать не хочет?
access.log:
127.0.0.1 - gena [30/May/2003:17:46:39 +0400] "GET /zakrobl HTTP/1.1" 401 481
127.0.0.1 - gena [30/May/2003:17:46:44 +0400] "GET /zakrobl HTTP/1.1" 401 481
127.0.0.1 - gena [30/May/2003:17:46:49 +0400] "GET /zakrobl HTTP/1.1" 401 481
127.0.0.1 - gena [30/May/2003:17:46:53 +0400] "GET /zakrobl HTTP/1.1" 401 481
error.log:
[Fri May 30 17:44:10 2003] [error] [client 127.0.0.1] user gena not found: /zakrobl
[Fri May 30 17:44:25 2003] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /.htpasswd
[Fri May 30 17:44:25 2003] [error] [client 127.0.0.1] user gena not found: /zakrobl
[Fri May 30 17:44:31 2003] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /.htpasswd
.htpasswd - я создал по всем правилам. Положил в корневую директорию.
htpasswd -c c:\\apache\\apache\\.htpasswd gena
Ввел пароль.
Повторил.
AuthUserFile /.htpasswd
AuthGroupFile /dev/null
AuthName "Protected Area"
AuthType Basic
require valid-user
Запустил апаче,
http://localhost/zakrobl - набил.
Выскочило окно ввести логин пароль. Ввожу логин: gena
Ввожу пароль. А он игнорирует, и после третьего окна на страницу с ошибкой Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn\'t understand how to supply the credentials required.
Почему не работает?