hi.
ich moecht ein verzeichniss mit einer .htaccess datei schuetzen und habe folgendes kleines prob:
aber er fragt mich nicht nach einem passwort! was mach ich falsch??
ich moecht ein verzeichniss mit einer .htaccess datei schuetzen und habe folgendes kleines prob:
Code:
hero stats # pwd
/var/www/localhost/htdocs/stats
hero stats #
hero stats # ls -al
total 52
drwxr-xr-x 2 apache apache 376 Feb 3 15:56 .
drwxr-xr-x 3 apache apache 104 Feb 3 14:53 ..
-rw-r--r-- 1 apache apache 162 Feb 3 16:01 .htaccess
-rw-r--r-- 1 apache apache 19 Feb 3 15:54 .htusers
-rw-r--r-- 1 apache apache 6259 Feb 3 16:00 hits.txt
-rw-r--r-- 1 apache apache 8030 Feb 3 16:00 index.html
-rw-r--r-- 1 apache apache 3933 Feb 3 16:00 logo.png
-rw-r--r-- 1 apache apache 2709 Feb 3 16:00 tcp-access.png
-rw-r--r-- 1 apache apache 2443 Feb 3 16:00 tcp-duration.png
-rw-r--r-- 1 apache apache 2721 Feb 3 16:00 tcp-transfer.png
-rw-r--r-- 1 apache apache 1343 Feb 3 16:00 udp-access.png
-rw-r--r-- 1 apache apache 1560 Feb 3 16:00 udp-duration.png
-rw-r--r-- 1 apache apache 1447 Feb 3 16:00 udp-transfer.png
hero stats #
#/var/www/localhost/htdocs/stats/.htaccess
AuthType Basic
AuthName "squid stats"
AuthUserFile /var/www/localhost/htdocs/stats/.htusers
Require user root
hero stats #htpasswd2 -c .htusers root