hi,
ich hab eine htacces-Datei und htpasswd angelegt.
Aber es funktioniert nicht. Wenn ich auf die Seite gehe und user und password eingebe, passiert nichts.
Also gehe ich mal davon aus, dass die .htaccess angezogen wird und ein 403 Status kommt.
Ich nehme an, dass mein Pfad zur htpasswd-Datei falsch ist.
Na das kannst Du ja prüfen...
Und in der htacces hab ich auch C:/Server/www/DEMO6/.htpasswd eingegeben.
... ob die Passwortdatei auch tatsächlich dort liegt und so heißt.
Falls Du diese Datei unter Windows erzeugst, ist die Encryption wichtig: hier geht nur MD5
c:\Programme\Apache Group\Apache2\bin>htpasswd
Usage:
htpasswd [-cmdpsD] passwordfile username
htpasswd -b[cmdpsD] passwordfile username password
htpasswd -n[mdps] username
htpasswd -nb[mdps] username password
-c Create a new file.
-n Don't update file; display results on stdout.
-m Force MD5 encryption of the password (default).
-d Force CRYPT encryption of the password.
-p Do not encrypt the password (plaintext).
-s Force SHA encryption of the password.
-b Use the password from the command line rather than prompting for it.
-D Delete the specified user.
On Windows, NetWare and TPF systems the '-m' flag is used by default.
On all other systems, the '-p' flag will probably not work.
roro