Apache für .htaccss konfigurieren
-
Wie muss die httpd.conf ausshene, damit ich mit .htaccess Bereiche schützen kann?
thx
Glamdring
-
# AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All [...] # # AccessFileName: The name of the file to look for in each directory # for access control information. See also the AllowOverride directive. # AccessFileName .htaccess
Ich hoffe, das ist jetzt schon alles
-
AllowOverride All
Ist das nich etwas zuviel des Guten?! Lieber AllowOverride AuthConfig....
-
Ich habs so eingestellt (mit all, ist eh nur Lokl ;)) und in das Verzeichnis MySQL eine .htaccess-Datei gepackt, die so aussieht:
AuthType PHPmyAdmin
AuthUserFile C:/file.pwd
AuthName "phpmyadmin"
Require AdminWenn ich jetzt im Browser http://localhost/MySQL/ eingebe wird mir alles angezeigt, ohne Abfrage, einfach so, dürfte ja eigendlioch nicht gehen, woran liegt das?
mfg
Glamdring
-
Syntax: AuthType Basic|Digest
[...]
Um zu funktionieren, muss die Anweisung von den Direktiven AuthType und Require sowie von Direktiven wie AuthUserFile und AuthGroupFile begleitet werden.Das sollte dir helfen: http://httpd.apache.org/docs-2.0/howto/auth.html
-
Hi,
Glamdrink schrieb:
AuthType PHPmyAdmin
das kenn ich nicht?!
Vielleicht AuthType Basic !
MfG
Alexander Sulfrian