Probleme apache-Testseite

Post Reply
Message
Author
faebu80
Posts: 3
Joined: 27. May 2004 20:28

Probleme apache-Testseite

#1 Post by faebu80 »

Hallo
Ich habe ein kleines Problem, wenn ich z.B. http://localhost eingebe kommt nur die Testseite, ich muss http://localhost/index.html eingeben um meine Webseite zu sehen. Die DirectoryIndex in der httpd.conf sind gesetzt.
Mein System:
Linux Debian
Apache 1.3.26
PHP 4.1.2

meine httpd.conf (gekürzt)

Code: Select all

....

DocumentRoot /var/www/

<Directory />
    Options SymLinksIfOwnerMatch
    AllowOverride None
</Directory>
<Directory /var/www/>
    Options Indexes Includes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMath IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>

<IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.htm
</IfModule>

...
Thanks

marten
Posts: 9
Joined: 20. May 2004 13:32

#2 Post by marten »

mach das htdocs verzeichnis doch mal leer. alles komplett raus. dann muessteste was bekommen wie "Index of /" und unten "Apache/2.0.49 (Unix) PHP/4.3.6 SVN/1.0.4 DAV/2 Server at localhost Port 80" (zumindest sieht das bei mir so aus).
dazwischen wuerden dann die dateien, sofern vorhanden, aufglistet werden.
das angeguckt, schieb deine index.html mal in dieses verzeichnis zurueck und guck dir nochmal http://localhost an.
was sagter nu?

gruss marten

User avatar
Stormbringer
Posts: 1570
Joined: 11. Jan 2001 11:01
Location: Ruhrgebiet

#3 Post by Stormbringer »

Die angezeigte Datei heißt index.php, oder?
Wenn dem so ist, und laut Apache Docu sollte dies so sein, vertausche mal die Reihenfolge von:
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.htm
</IfModule>

(Falls es bei Apache2 icht gänzlich anders gehandhabt wird)

Gruß
Continuum Hierarchy Supervisor:
You have already been assimilated.
(Rechtschreibungsreformverweigerer!)

faebu80
Posts: 3
Joined: 27. May 2004 20:28

#4 Post by faebu80 »

Ich habe dies auch schon versucht, leider eben ohne Erfolg

Post Reply