Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem mit Apache
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
mr_stigmata
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2004
Posts: 119
Location: München

PostPosted: Mon Dec 06, 2004 9:32 am    Post subject: Problem mit Apache Reply with quote

Hallo,

ich habe folgendes Problem - wenn ich in meinem Apache z.b. auf: http://www.domain.de/test/ gehe bekomme ich die Meldung im Webbrowser:

"404 Not Found
The requested URL /test/ was not found on this server."

Im Apache Log steht:
"Attempt to serve directory: /home/data/www/test/" <-- das Verzeichnis ist vorhanden. Gebe ich dieses hier an: http://www.domain.de/test/index.php kommt die Seite normal und ich bekomme keine Probleme.
index.php ist im DirectoryIndex eingetragen.

Mich verwundert das "Attempt to serve directory:.." im Apache Error-Log, kennt das jemand? mir ist das neu...
Jemand eine Idee was ich anstellen muss das die index.php automatisch geladen wird?

Danke.

MfG,
stigmata
Back to top
View user's profile Send private message
borlander
Apprentice
Apprentice


Joined: 10 Jan 2004
Posts: 160
Location: Gummersbach

PostPosted: Mon Dec 06, 2004 10:09 am    Post subject: Reply with quote

Die Rechte für deinen Ordner musst du im apache angeben.

Ich habe in der /etc/apache2/conf/commonapache2.conf mit folgenden Eintrag das Directory Listing angestellt:
Code:
<Directory />
  Options Indexes
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>


Vorher stand bestimmt "Options -All" dort.
Du kannst auch einzelne Verzeichnissrechte ändert (<Directory /home/data/www/test/>)

[edit]
/etc/apache2 restart
nicht vergessen
[/edit]
Back to top
View user's profile Send private message
mr_stigmata
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2004
Posts: 119
Location: München

PostPosted: Mon Dec 06, 2004 4:25 pm    Post subject: Reply with quote

Hi borlander,

danke für deinen tipp - das wars leider nicht. Immer noch das selbe Problem.

Kann es mit irgendwelchen fehlenden Modulen zusammenhängen? mod_dir und mod_alias ist vorhanden und geladen.


MfG,
stigmata
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2935
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Dec 06, 2004 9:47 pm    Post subject: Reply with quote

in DirectoryIndex (in httpd.conf)
Code:

DirectoryIndex index.html index.html.var index.php


eintragen und apache neustarten
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
DarKRaveR
Guru
Guru


Joined: 11 Oct 2003
Posts: 500
Location: Old Europe/G-Many

PostPosted: Tue Dec 07, 2004 3:15 am    Post subject: Reply with quote

Er hat doch geschrieben, daß es im DirectoryIndex eingetragen ist, oder habe ich mich so verlesen ?

In der Tat komisch, würden seitens des FS Apache die Rechte fehlen, könnte er das index.php direkt nicht nutzen.

Directory Indexing allgemein muß er nicht erlauben, für das DirectoryIndex.

Ich muß gestehen, mir ist die Fehlermeldung gänzlich unbekannt.

----

Habe mal bissi geschaut, hast DU direkt oder indirekt irgendwelche Handler für besagtes Verzeichnis definiert ?
Back to top
View user's profile Send private message
mr_stigmata
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2004
Posts: 119
Location: München

PostPosted: Tue Dec 07, 2004 1:09 pm    Post subject: Reply with quote

Hi DarKRaveR,

du hast recht - der DirectoryIndex ist gesetzt aber ich muss jedes mal explizit den kompletten Pfad samt Dateiname angeben.

Vielleicht hat ja noch jemand die zündende Idee ;)

MfG,
stigmata
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2935
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue Dec 07, 2004 1:37 pm    Post subject: Reply with quote

ich verstehe nicht, was faksch sein soll. Poste mal deine httpd.conf ohne Kommenatre.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
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