• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Apache Error 403

dragoon

Newbie
Hi alle miteinander!

Hab da mal wieder eine blöde Frage :( !

Hab über YAST meine Webserver zum lokalen testen von webseiten eingerichtet (SUSE 10.2)! Nur leider meldet er mir wenn ich http://localhost aufrufe "Zugriff verweigert, Error 403". In YAST sagt er dass alles funktionieren sollte.
Hab mal alle dateien und ordner in /srv/www/ mit chown name:users * von root:root geändert. Hat aber auch nix gebracht.

Was mach ich falsch?
Bitte helft mir!

MfG, dragoon
 

gameboy

Hacker
Hallo dragoon,

schau doch mal, was bei einem Zugriffsversuch per Browser in den Dateien /var/log/apache2/access_log bzw. /var/log/apache2/error_log protokolliert wird.

Viele Grüße,
gameboy.
 
OP
D

dragoon

Newbie
Guten Morgen!

Hier mal ein Auszug aus meiner access_log:

Code:
127.0.0.1 - - [30/Aug/2007:16:26:02 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:16:26:03 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:16:35:43 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:16:35:46 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:16:35:47 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:18:11:18 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:18:11:18 +0200] "GET /favicon.ico HTTP/1.1" 404 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:18:11:23 +0200] "GET / HTTP/1.1" 403 1097 "http://localhost/" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:19:33:24 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:19:33:24 +0200] "GET /favicon.ico HTTP/1.1" 404 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:20:17:05 +0200] "GET /index.html HTTP/1.1" 404 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:20:17:06 +0200] "GET /favicon.ico HTTP/1.1" 404 1131 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:20:17:11 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"
127.0.0.1 - - [30/Aug/2007:20:35:20 +0200] "GET / HTTP/1.1" 403 1097 "-" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.5) Gecko/20061023 SUSE/2.0.0.5-1.1 Firefox/2.0.0.5"

und hier die error_log:

Code:
[Thu Aug 30 18:11:18 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/done/htdocs/
[Thu Aug 30 18:11:18 2007] [error] [client 127.0.0.1] File does not exist: /srv/done/htdocs/favicon.ico
[Thu Aug 30 18:11:23 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/done/htdocs/, referer: http://localhost/
[Thu Aug 30 19:32:43 2007] [notice] SIGHUP received.  Attempting to restart
[Thu Aug 30 19:32:44 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured -- resuming normal operations
[Thu Aug 30 19:33:24 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/done/htdocs/
[Thu Aug 30 19:33:24 2007] [error] [client 127.0.0.1] File does not exist: /srv/done/htdocs/favicon.ico
[Thu Aug 30 20:14:01 2007] [notice] caught SIGTERM, shutting down
[Thu Aug 30 20:14:03 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured -- resuming normal operations
[Thu Aug 30 20:17:05 2007] [error] [client 127.0.0.1] File does not exist: /srv/done/htdocs/index.html
[Thu Aug 30 20:17:06 2007] [error] [client 127.0.0.1] File does not exist: /srv/done/htdocs/favicon.ico
[Thu Aug 30 20:17:11 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/done/htdocs/
[Thu Aug 30 20:29:30 2007] [notice] caught SIGTERM, shutting down
[Thu Aug 30 20:29:31 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured -- resuming normal operations
[Thu Aug 30 20:35:12 2007] [notice] SIGHUP received.  Attempting to restart
[Thu Aug 30 20:35:13 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured -- resuming normal operations
[Thu Aug 30 20:35:20 2007] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/done/htdocs/
[Thu Aug 30 21:46:16 2007] [notice] caught SIGTERM, shutting down
[Thu Aug 30 21:57:23 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured -- resuming normal operations
[Thu Aug 30 22:44:20 2007] [notice] caught SIGTERM, shutting down
[Thu Aug 30 23:18:53 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured -- resuming normal operations
[Fri Aug 31 00:03:15 2007] [notice] caught SIGTERM, shutting down
[Fri Aug 31 08:31:35 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured -- resuming normal operations

Noch zur info: /srv/done/htdocs sollte ein virtueller host sein den er mir unter yast aber nicht mehr anzeigt

Vielen Dank für eure Hilfe!

MfG, dragoon
 
OP
D

dragoon

Newbie
Hi alle miteinander!

Hab das ganze jetzt mal bei einem anderen pc probiert und da geht alles einwandfrei! Apache sagt "It works!" und ich bin weiter ratlos. Ich versteh nicht wo das problem liegt! Jeder kann von dem verzeichnis lesen und ich hab auch eine index.html drinnen.

Bitte um Hilfe!
Bin in Linux noch nicht so bewandert :D

Grüße, dragoon
 
OP
D

dragoon

Newbie
Hi!

Habs jetzt hinbekommen :)

Zwar ned ellegant aber hauptsache es geht!
Hab /etc/apache2 gelöscht und dann apache neu installiert und voila es geht

Cu
 

Dr. Glastonbury

Advanced Hacker
Moin,
wenn das Problem damit gelöst ist, dann kennzeichne das doch bitte auch durch ein [gelöst] im Titel -> einfach den ersten Post editieren :)
 
Oben