Bei mir wird nicht mal das Passwortfenster aufgerufen. Habe als Webserver Foxserv(Apache, MySQL, PHP) installiert.
Meine Dateien:
htaccess und .htpasswd sind im selben Verzeichnis.
.htaccess:
authUserFile localhost/guestbook/.htpasswd
authGroupFile localhost/guestbook/.htgroup
authType basic
authName "Zugriff"
.htgroup ist leer, sollte nichts ausmachen.
.htpasswd
User1: User1
User2: User2
Mir hat einer geraten bei .htaccess folgende Zeile einzubinden:
<limit get>
user: User1 User2
</limit>
Der Webserver brachte dann Fehlermeldung.
Auszug aus meiner error-Logdatei:
Apache server shutdown initiated...
[Thu Apr 04 14:06:12 2002] [error] [client 127.0.0.1] client denied by server configuration: c:/foxserv/www/guestbook/.htaccess
[Thu Apr 04 14:06:30 2002] [error] [client 127.0.0.1] client denied by server configuration: c:/foxserv/www/guestbook/.htgroup
[Thu Apr 04 14:10:31 2002] [error] [client 127.0.0.1] client denied by server configuration: c:/foxserv/www/guestbook/.htgroup
[Thu Apr 04 14:53:11 2002] [alert] [client 192.168.250.6] c:/foxserv/www/guestbook/.htaccess: unknown method "get" in <Limit>
[Thu Apr 04 14:55:52 2002] [alert] [client 192.168.250.6] c:/foxserv/www/guestbook/.htaccess: unknown method "Get" in <Limit>
[Thu Apr 04 14:57:21 2002] [alert] [client 192.168.250.6] c:/foxserv/www/guestbook/.htaccess: unknown method "Get" in <Limit>
[Thu Apr 04 14:57:24 2002] [alert] [client 192.168.250.6] c:/foxserv/www/guestbook/.htaccess: unknown method "Get" in <Limit>
[Thu Apr 04 14:57:49 2002] [alert] [client 192.168.250.6] c:/foxserv/www/guestbook/.htaccess: unknown method "Get" in <Limit>
[Thu Apr 04 15:03:21 2002] [alert] [client 192.168.250.6] c:/foxserv/www/guestbook/.htaccess: Invalid command '<Limit>', perhaps mis-spelled or defined by a module not included in the server configuration
[Thu Apr 04 15:03:26 2002] [alert] [client 192.168.250.6] c:/foxserv/www/guestbook/.htaccess: Invalid command '<Limit>', perhaps mis-spelled or defined by a module not included in the server configuration
[Thu Apr 04 15:03:31 2002] [alert] [client 192.168.250.6] c:/foxserv/www/guestbook/.htaccess: Invalid command '<Limit>', perhaps mis-spelled or defined by a module not included in the server configuration
Danke im Voraus
Mfg Matthias