Ein nettes Hallo an alle Forumer ;o)
Habe ein Problem seit 2 Tagen (Apache2.2 installiert) und zwar hätte ich gerne das wenn man meine Seite (index.html) besucht, das vorher eine Passwort abfrage kommt !
1. ist so etwas überhaupt machbar ?
Habe dazu im Verzeichnis C:/Programme/Apache Software Foundation/Apache2.2/htdocs eine .htaccess erstellt !
schaut so aus :
AuthType Basic
AuthName "CaWaWeb-Check"
AuthUserFile C:/Programme/Apache Software Foundation/Apache2.2/USERLog/.htpasswd
Require valid-user
und im USERLog Verzeichnis eine .htpasswd die so schaut :
User1:passwort
das ganze habe ich dann folgender maßen 'freigeschaltet' :
<Directory />
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
<Directory "C:/Programme/Apache Software Foundation/Apache2.2/htdocs">
Options Indexes FollowSymLinks ExecCGI MultiViews
AllowOverride AuthConfig
</Directory>
<Files ~"^\.ht">
Order allow,deny
Deny from all
</Files>
AccessFileName .htaccess
Letztere Einträge habe ich in Foren etc. nachgelesen.
Habe die .htaccess im htdoc liegen wo auch meine index.html liegt. Wenn ich aber nu die Adresse zum Apache eingebe kommt der 500 error !
Im errorlog steht dann :
C:/Programme/Apache Software Foundation/Apache2.2/htdocs/.htaccess: AuthUserFile takes 1-2 arguments, text file containing user IDs and passwords
???
Muss ich irgendwo noch was eintragen in der conf ???
Vielen Dank für Eure Zeit.
MfG CaWa