hi,
wichtig ist in der .htaccess vor allem die Pfadangabe zur Passwortdatei like this:
AuthUserFile e:/tmp/.passwordfile
AuthName "Secret Realm"
AuthType Basic
require valid-user
Auch unter Windows funktioniert eine encrypted Password, es kommt jedoch darauf an wie encrypted. Schau mal was die Hilfe von *htpasswd.exe* dazu sagt:
=htpasswd
C:\Programme\Apache Group\Apache\bin>htpasswd
Usage:
htpasswd [-cmdps] passwordfile username
htpasswd -b[cmdps] passwordfile username password
-c Create a new file.
-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.
On Windows and TPF systems the '-m' flag is used by default.
On all other systems, the '-p' flag will probably not work.
=cut
MD5 als Default funktioniert auch unter Windows.
Beispiel .passwordfile
rolf:$apr1$9/1.....$B5BUHhoHGN6GxypyklTcC1
Also: Die Passwortdatei mit *htpasswd.exe* erstellen
C:\Programme\Apache Group\Apache\bin>htpasswd -c e:\tmp.passwordfile rolf
Automatically using MD5 format on Windows.
New password: ****
Re-type new password: ****
Adding password for user rolf
... und schon gehts ;-)
Rolf