Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 403 Forbidden
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ChrisM87
l33t
l33t


Joined: 07 Aug 2004
Posts: 728
Location: Rheinland-Pfalz (Germany)

PostPosted: Sun Jan 30, 2005 7:00 pm    Post subject: Apache 403 Forbidden Reply with quote

Hi,

ich habe folgendes Problem. Ich habe gerade frisch angefangen, etwas mit Apache 2 rumzuspielen und bin auf folgendes Problem gestoßen:

Ich habe in meinem Document Root unter /var/www/localhost/htdocs (Standardeinstellung) verschiedene Dateien:
Code:
bash-2.05b$ ls
apache_pb.gif            index.html.el             index.html.lb.utf8       index.html.ru.koi8-r
apache_pb.png            index.html.en             index.html.nl            index.html.ru.utf8
apache_pb2.gif           index.html.es             index.html.nn            index.html.sv
apache_pb2.png           index.html.et             index.html.no            index.html.var
apache_pb2_ani.gif       index.html.fr             index.html.po.iso8859-2  index.html.zh-cn.gb2312
index.html.ca            index.html.he.iso8859-8   index.html.pt            index.html.zh-tw.big5
index.html.cz.iso8859-2  index.html.hr.iso8859-2   index.html.pt-br         squirrelmail
index.html.de            index.html.it             index.html.ru.cp-1251    webalizer
index.html.dk            index.html.ja.iso2022-jp  index.html.ru.cp866
index.html.ee            index.html.ko.euc-kr      index.html.ru.iso-ru


Jetzt geht es mir um squirrelmail und webalizer. Beide Ordner haben exakt identische Attribute.

Folgende Datei in squirrelmail kann ich wie alle anderen dort aufrufen:
-rw-rw-r-- 1 apache apache 338 Jan 30 17:00 index.php

Die index.html von Webalizer hingegen kann ich nicht aufrufen (403 Forbidden):
-rw-r--r-- 1 root root 3689 Jan 30 19:12 index.html

Ich habe auch schon versucht, sie auf apache:apache zu chown'en, aber das hat nichts gebracht. :(

Hat jemand eine Ahnung, warum ich die nicht aufrufen kann, aber Squirrelmail schon?

ChrisM

PS: Kann mir jemand sagen, wozu /var/www/localhost/icons/ dient? Er liegt doch außerhalb des Document Roots, ist also über den Server gar nicht aufrufbar, oder versteh ich das falsch?
_________________
born to be root - sorry for my bad English!
Back to top
View user's profile Send private message
ChrisM87
l33t
l33t


Joined: 07 Aug 2004
Posts: 728
Location: Rheinland-Pfalz (Germany)

PostPosted: Sun Jan 30, 2005 7:07 pm    Post subject: Reply with quote

Hi,

hab meinen dummen Fehler gefunden:
Code:
#
# This is the config snippet for Webalizer
#
# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/files/2.01.10/apache.webalizer,v 1.2 2004/07/18 02:25:49 dragonheart Exp $

Alias /webalizer "/var/www/webalizer"

<Directory "/var/www/webalizer">
  Options None
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>


Das hier hat verhindert, dass ich darauf zugreifen konnte.

Die Iconfrage gilt aber immer noch. ;)

ChrisM
_________________
born to be root - sorry for my bad English!
Back to top
View user's profile Send private message
DaSilentStorm
n00b
n00b


Joined: 20 Jan 2004
Posts: 43
Location: Mainz/Germany

PostPosted: Sun Jan 30, 2005 7:20 pm    Post subject: Reply with quote

Hi,

ich glaube die Icons werden zusammen mit dem Verzeichnisindex direkt vom Apache ausgeliefert. Das Verzeichnis dürfte dabei also keine Rolle spielen.

Ist nur getippt, aber so könnte ich es mir Vorstellen.

Greetz,
ya Storm
_________________
Twenty-eight days... six hours... forty-two minutes... twelve seconds. That... is when the world... will end.
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Sun Jan 30, 2005 7:21 pm    Post subject: Reply with quote

schau dir mal diese icons an, dann weißt du es, wozu die gut sind! (Indexing usw)

hth,
ciao
_________________
-l: signature: command not found
Back to top
View user's profile Send private message
ChrisM87
l33t
l33t


Joined: 07 Aug 2004
Posts: 728
Location: Rheinland-Pfalz (Germany)

PostPosted: Sun Jan 30, 2005 7:26 pm    Post subject: Reply with quote

Hi,

ja klar, aber wenn der Apache sie irgendwo in einer Webseite verwendet, muss er doch einen Pfad mitliefern, wo der Browser das Bild dann abrufen kann. Sie liegen ja aber unterhalb des Document Roots und einen Alias wie bei webalizer konnte ich auch nicht finden.
Der Browser kann ja schlecht senden: GET ../icons/bla.gif

ChrisM
_________________
born to be root - sorry for my bad English!
Back to top
View user's profile Send private message
Vaarsuvius
Guru
Guru


Joined: 02 Dec 2004
Posts: 345

PostPosted: Sun Jan 30, 2005 7:37 pm    Post subject: Reply with quote

in /etc/apache2/conf/commonapache2.conf stehen die aliase... unter anderem
Alias /icons/ /var/www/localhost/icons/
Back to top
View user's profile Send private message
ChrisM87
l33t
l33t


Joined: 07 Aug 2004
Posts: 728
Location: Rheinland-Pfalz (Germany)

PostPosted: Sun Jan 30, 2005 8:02 pm    Post subject: Reply with quote

Danke :)

Ist die Standardkonfiguration von Apache (die beim eBuild dabei ist), eigentlich ok und sicher, d.h. kann ich das so produktiv einsetzen? Sorry für die blöde Frage, aber ich gehe lieber sicher ;)

Chris
_________________
born to be root - sorry for my bad English!
Back to top
View user's profile Send private message
Sonic Lux
Guru
Guru


Joined: 07 Mar 2004
Posts: 375
Location: Dresden / Germany

PostPosted: Sun Jan 30, 2005 9:14 pm    Post subject: Reply with quote

was meinst du mit sicher ?
das niemand über http deine festplatte löschen kann ... ?! :D
Back to top
View user's profile Send private message
ChrisM87
l33t
l33t


Joined: 07 Aug 2004
Posts: 728
Location: Rheinland-Pfalz (Germany)

PostPosted: Sun Jan 30, 2005 10:03 pm    Post subject: Reply with quote

Hi,

naja, das nix experimentelles drin ist oder eben eine Option, die mit bestimmten Scripts potentiell unsicher ist. Ja, PHP Safe Mode kenne ich. :)

Oder sagen wir's so, dass es keinen versteckten Alias auf / gibt. :)

ChrisM
_________________
born to be root - sorry for my bad English!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum