View previous topic :: View next topic |
Author |
Message |
mr_stigmata Tux's lil' helper
Joined: 24 Nov 2004 Posts: 119 Location: München
|
Posted: Mon Dec 06, 2004 9:32 am Post subject: Problem mit Apache |
|
|
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 |
|
|
borlander Apprentice
Joined: 10 Jan 2004 Posts: 160 Location: Gummersbach
|
Posted: Mon Dec 06, 2004 10:09 am Post subject: |
|
|
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 |
|
|
mr_stigmata Tux's lil' helper
Joined: 24 Nov 2004 Posts: 119 Location: München
|
Posted: Mon Dec 06, 2004 4:25 pm Post subject: |
|
|
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 |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2935 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Mon Dec 06, 2004 9:47 pm Post subject: |
|
|
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 |
|
|
DarKRaveR Guru
Joined: 11 Oct 2003 Posts: 500 Location: Old Europe/G-Many
|
Posted: Tue Dec 07, 2004 3:15 am Post subject: |
|
|
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 |
|
|
mr_stigmata Tux's lil' helper
Joined: 24 Nov 2004 Posts: 119 Location: München
|
Posted: Tue Dec 07, 2004 1:09 pm Post subject: |
|
|
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 |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2935 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Tue Dec 07, 2004 1:37 pm Post subject: |
|
|
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 |
|
|
|