wer kann mir sagen wo der Fehler liegt:
/etc/apache2/httpd.conf
- Code: Select all
# forbid access to the entire filesystem by default
<Directory /srv/www/*>
# Options All
# AllowOverride None
# Options SymLinksIfOwnerMatch
AllowOverride AuthConfig
Order Deny,Allow
Deny from All
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
# List of resources to look for when the client requests a directory
DirectoryIndex index.html index.html.var
Verzeichniss der geschützt werden soll:
/srv/www/htdocs/web3/webalizer/
ls -al
- Code: Select all
drwxr-xr-x 2 10001 10001 368 Jan 2 20:28 .
drwxr-xr-x 4 10001 10001 136 Jan 1 20:26 ..
-rw-r--r-- 1 10001 10001 118 Jan 2 20:22 .htaccess
-rw-r--r-- 1 10001 10001 40 Jan 2 02:05 .htpasswd
-rw-r--r-- 1 root root 2293 Jan 2 00:00 ctry_usage_200501.png
-rw-r--r-- 1 root root 2511 Jan 2 00:00 daily_usage_200501.png
-rw-r--r-- 1 root root 1742 Jan 2 00:00 hourly_usage_200501.png
-rw-r--r-- 1 root root 3674 Jan 2 00:00 index.html
-rw-r--r-- 1 root root 2059 Jan 2 00:00 usage.png
-rw-r--r-- 1 root root 37396 Jan 2 00:00 usage_200501.html
-rw-r--r-- 1 root root 27 Jan 2 00:00 webalizer.hist
die .htaccess
- Code: Select all
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile /srv/www/htdocs/web3/webalizer/.htpasswd
require valid-user
Mein System:
Linux SUSE 9.1 mit Kernel: 2.6.5
Apache 2.0.52
PHP 4.3.10
MySQL 4.0.18
Vielleicht noch das:
- Code: Select all
LoadModule suexec_module /usr/lib/apache2-prefork/mod_suexec.so
LoadModule access_module /usr/lib/apache2-prefork/mod_access.so
LoadModule alias_module /usr/lib/apache2-prefork/mod_alias.so
LoadModule uth_module /usr/lib/apache2-prefork/mod_auth.so
LoadModule autoindex_module /usr/lib/apache2-prefork/mod_autoindex.so
LoadModule dir_module /usr/lib/apache2-prefork/mod_dir.so
LoadModule log_config_module /usr/lib/apache2-prefork/mod_log_config.so
LoadModule mime_module /usr/lib/apache2-prefork/mod_mime.so
LoadModule setenvif_module /usr/lib/apache2-prefork/mod_setenvif.so
LoadModule php4_module /usr/lib/apache2-prefork/libphp4.so
#
Ich kann nicht mehr, seit 5 Std. suche ich den Fehler.
Pawel