Hallo,
kann sein, dass ich blind bin, aber ich finde den Fehler nicht, um .htaccess Verzeichnisschutz in der Suse 10.2 (aktuelles Update) httpd.conf für ein Verzeichnis zu aktivieren:
...
# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs">
Options None
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
...
Ich hab mit XAMPP under Windows eine Testinstallation, wo .htaccess funktioniert.
Im betroffenen Verzeichnis wie auch darüber gibt es ein .htaccess und .htpasswd file:
AuthName "PRIVAT"
AuthType Basic
AuthUserFile /srv/www/htdocs/.htpasswd
<Limit GET>
require valid-user
</Limit>
----
Alles eigentlich Standard aus den Anleitungen etc!
Warum verlangt Apache mit dieser config unter Linux kein User/Passwort??
Im Apache-Log finde ich auch nichts.
kann sein, dass ich blind bin, aber ich finde den Fehler nicht, um .htaccess Verzeichnisschutz in der Suse 10.2 (aktuelles Update) httpd.conf für ein Verzeichnis zu aktivieren:
...
# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs">
Options None
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
...
Ich hab mit XAMPP under Windows eine Testinstallation, wo .htaccess funktioniert.
Im betroffenen Verzeichnis wie auch darüber gibt es ein .htaccess und .htpasswd file:
AuthName "PRIVAT"
AuthType Basic
AuthUserFile /srv/www/htdocs/.htpasswd
<Limit GET>
require valid-user
</Limit>
----
Alles eigentlich Standard aus den Anleitungen etc!
Warum verlangt Apache mit dieser config unter Linux kein User/Passwort??
Im Apache-Log finde ich auch nichts.