Wer eine .htaccess und eine .htpasswd erstellt hat und sich wundert, dass es nicht funktioniert, sollte sichergehn dass AllowOverride für das entsprechen Directory gesetzt ist.
Dies wird in der httpd.conf erledigt:
<Directory /var/www/mySite>
[...]
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All
[...]
</Directory>
Infos und Generatoren zum erstellen der .htaccess und der .htpasswd findet man mittels der Google-Suche unter dem Stichwort “htaccess erstellen”.



Eintrag kommentieren