Problem mit index.html und index.php!

Apache, Lighttpd, nginx, Cherokee
Post Reply
horriblelamer
Posts: 4
Joined: 2003-04-12 23:38
Location: Ruhrpott
Contact:
 

Problem mit index.html und index.php!

Post by horriblelamer »

Hallo erstmal,

ich haben folgendes Problem. Ich habe in einem Verzeichnis eine "index.html" und eine "index.php" Datei. Aber immer wenn ich die Adresse als Ordner aufrufe (http://www.test.de/test/), wird automatisch die index.php und nicht die index.html geöffnet. Woran könnte das liegen und wie kann ich das ändern?

MfG HL
begga
Posts: 18
Joined: 2003-05-29 19:04
 

Re: Problem mit index.html und index.php!

Post by begga »

Suche in der httpd.conf nach "DirectoryIndex"
Dort wird wohl sowas in der Art stehen:

Code: Select all

DirectoryIndex index.php index.html
Ã?ndere das einfach in:

Code: Select all

DirectoryIndex index.html index.php
Apache natürlich restarten
horriblelamer
Posts: 4
Joined: 2003-04-12 23:38
Location: Ruhrpott
Contact:
 

Re: Problem mit index.html und index.php!

Post by horriblelamer »

Danke erstmal für deine Antwort, aber bei mir sieht der Eintrag folgendermassen aus:

Code: Select all

DirectoryIndex index.htm index.html index.php index.php4
Ich Habs auch schon mit hiermit versucht:

Code: Select all

DirectoryIndex index.html index.htm index.php index.php4
Aber irgendwie funktiniert das nicht.
memphis
Posts: 29
Joined: 2003-03-15 14:03
 

Re: Problem mit index.html und index.php!

Post by memphis »

HorribleLamer wrote:Danke erstmal für deine Antwort, aber bei mir sieht der Eintrag folgendermassen aus:

Code: Select all

DirectoryIndex index.htm index.html index.php index.php4
Ich Habs auch schon mit hiermit versucht:

Code: Select all

DirectoryIndex index.html index.htm index.php index.php4
Aber irgendwie funktiniert das nicht.
wenn das nicht klappt, dann versichs mal mit

Code: Select all

DirectoryIndex index.php4 index.php index.htm index.html
Ich habs zwar nicht ausprobiert, aber es ist oft so, dass Programme/Server usw. von vorne nach hinten anstatt von hinten nach vorne gehen.
horriblelamer
Posts: 4
Joined: 2003-04-12 23:38
Location: Ruhrpott
Contact:
 

Re: Problem mit index.html und index.php!

Post by horriblelamer »

War ne Gute Idee, hat aber leider auch nicht geklappt.

MfG HL
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: Problem mit index.html und index.php!

Post by sascha »

Falls du Confixx benutzt liegt es am Entsprechenden Eintrag in der confixx_vhost.conf.
memphis
Posts: 29
Joined: 2003-03-15 14:03
 

Re: Problem mit index.html und index.php!

Post by memphis »

mmh dann keine Ahnung

Solltest mal schauen ob du DirectoryIndex mehrmals definiert hast, das geht ja auch.
horriblelamer
Posts: 4
Joined: 2003-04-12 23:38
Location: Ruhrpott
Contact:
 

Re: Problem mit index.html und index.php!

Post by horriblelamer »

@ Sascha
Ja, ich benutze Confixx, hab aber keinen DirectoryIndex Eintrag in der confixx_vhost.conf.

@ memphis
Ich hab den DirectoryIndex nur ein mal definiert.
Post Reply