PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Ziemlich "misteriöse" Probleme mit dem Apache...



gEistiO
02.04.03, 13:28
Also...
Ich habe hier ein sehr eigentartiges Problem:
Ständig bekomme ich die selbe Fehlermeldung: "403 Forbidden"...
Ich habe jetzt aber absolut keine Ahnung warum das so ist!

Hier mal meine Config:


chef:~# cat /etc/apache/httpd.conf

####################################
# GENERAL #
####################################

LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

ServerType standalone
ServerRoot /etc/apache
LockFile /var/lock/apache.lock
PidFile /var/run/apache.pid
ScoreBoardFile /var/run/apache.scoreboard
Timeout 300
KeepAlive On
Listen chef:80
ExtendedStatus On
User www-data
Group www-data
ServerAdmin webmaster@chef.kanzlei.bmd
UseCanonicalName On
TypesConfig /etc/mime.types
DefaultType text/plain
HostnameLookups Off
AddDefaultCharset on
ServerSignature On


####################################
# DIRECTORIES #
####################################

DocumentRoot /var/www
Alias /icons/ /usr/share/apache/icons/
Alias /doc/ /usr/share/doc/

<Directory /var/www/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory /usr/share/apache/icons>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Location /doc>
Order allow,deny
allow from all
Options Indexes FollowSymLinks MultiViews
</Location>


####################################
# MODULES #
####################################

<IfModule mod_mime_magic.c>
MIMEMagicFile share/magic
</IfModule>

<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi index.php
</IfModule>

<IfModule mod_autoindex.c>
IndexOptions FancyIndexing NameWidth=*
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/deb.gif .deb
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>

<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
<IfModule mod_negotiation.c>
LanguagePriority de en
</IfModule>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
AddType image/bmp .bmp
</IfModule>


####################################
# LOGGING #
####################################

ErrorLog /var/log/apache/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %v" full
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %P %T" debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache/access.log combined


Und dann das auch noch gleich :):


chef:~# ls -l /var/www
total 292
-rw-r--r-- 1 www-data src 16017 Feb 25 16:29 .config
-rw-r--r-- 1 www-data root 254698 Feb 3 2002 Samba-HOWTO-Collection.pdf
-rw-r--r-- 1 www-data root 4110 Oct 26 11:12 bla.htm
lrwxrwxrwx 1 www-data root 16 Feb 13 22:07 cgi-bin -> /usr/lib/cgi-bin
lrwxrwxrwx 1 www-data root 14 Jan 23 13:57 documentation -> /usr/share/doc
lrwxrwxrwx 1 www-data root 10 Jan 20 15:32 fotos -> /mnt/fotos
drwxrwxrwx 5 www-data staff 4096 Feb 16 13:02 geistio.i-networx.de
lrwxrwxrwx 1 www-data root 21 Jan 18 14:39 phpsysinfo -> /usr/share/phpsysinfo
-rw-r--r-- 1 www-data root 799 Jan 20 23:19 prim.php
drwxr-xr-x 4 www-data users 4096 Feb 18 22:05 vota


Ich hoffe, dass ihr mir helfen könnt (Ich bin mir natürlich sicher, dass ihr das könnt ;))...
Danke schonmal im vorraus!

mbo
02.04.03, 14:07
bei welcher seite und wo liegt sie bekommst du eine 404?

gEistiO
02.04.03, 19:33
Also...es ist kein 404 sondern ein 403!
Und ich bekomme ihn auf jeder Seite!
Ich kann machen was ich will, immer 403... :confused: :ugly:

Berufspenner
02.04.03, 20:04
Hi@all

Bekommst du die Meldung auch, wenn du direkt eine Datei öffnest, oder nur wenn du in ein Verzeichnis möchtest? Sind die Ordner- bzw. Dateirechte denn auch richtig gesetzt?

Cu
André

gEistiO
02.04.03, 20:22
Also...
Es ist völlig egal welche Datei ich öffnen, bzw in welches Verzeichnis ich welchsel... immer das gleiche :(
In meinem ersten Post hab ich übrigens die Rechte meines Root-Verzeichnisses gepostet! :D
Stimmt doch alles oder?!

Berufspenner
02.04.03, 20:32
Hi@all

Also du solltest Schreibrechte am besten nur für den gültigen Benutzer erteiln und desweiteren musst du Datein wie bla.htm auch für jeden ausführbarmachen.

Cu
André