Apache a .htpasswd
Jindra Bosak
jindra na cem.cz
Úterý Červen 16 17:09:40 CEST 1998
Hi All !
zkousim omezit pristup na urcite stranky jen urcitemu uzivateli.
konfigurace je nasledujici :
v access.conf mam :
<Directory /home/httpd/html/usage>
Options Indexes FollowSymLinks
AllowOverride None
AuthUserFile /etc/httpd/conf/.htpasswd
AuthName Usage
<Limit GET>
require user testuser
</Limit>
</Directory>
----
tj.: do adr '/home/httpd/html/usage' pustim jen uzivatele 'testuser' , kterej
se overi pomoci '/etc/httpd/conf/.htpasswd' - kde samozrejme je.
Ovsem netscape pri pristupu do tohoto adr. zahlasi, ze ma:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
----atd.----
v logu od httpd mam :
[Tue Jun 16 17:04:49 1998] access to /usage failed for 196.0.1.144, reason:
configuration error: couldn't check user. No user file?
----
chapu to tak, ze nemuze najit 'user file' coz by mel byt
'/etc/httpd/conf/.htpasswd' . Ten tam samoze je ! :-(
Nevite nekdo co s tim ??
Diky a preji hezky destivy den :->
Jindra Bosak
Další informace o konferenci Linux