WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   apache konfiguration (http://www.wcm.at/forum/showthread.php?t=82744)

irrsinn 02.01.2003 23:12

apache konfiguration
 
Wie kann ich beim Apache Webserver (Version 1.irgendwas) einstellen, welche Files er automatisch anzeigt, wenn man nur eine URL mit einem / am Schluss angibt?

Mein Server zeigt nur index.html an.
Ich hätt aber gern, dass er auch sofern vorhanden index.php anzeigt.

Ich hoff die Problembeschreibung ist soweit verständlich.

valo 02.01.2003 23:30

/etc/apache/httpd.conf und schau auf zeile 780... dort auskommentiern...

irrsinn 02.01.2003 23:34

bitte sag mir, was in der zeile stehn soll. dann find ichs leichter. hab nämlich meine httpd.conf schon verändert. daher stimmen die zeilennummern nimmer.

valo 02.01.2003 23:44

beginnt

AddType application/

das is der anfang der zeile...

jonix 03.01.2003 00:36

bei apache v1.3.20 schauts (bei mir) so aus:
Code:

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

siehe http://httpd.apache.org/docs/mod/mod...directoryindex


und falls notwendig
Code:

#
# And for PHP 4.x, use:
#
<IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php-source .phps
</IfModule>

siehe eventuell auch http://www.php.net/manual/de/install.apache.php


gruss joerg

valo 03.01.2003 01:09

ups, hab mich geirrt :rolleyes: :D

jonix hat recht...


Alle Zeitangaben in WEZ +2. Es ist jetzt 13:53 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag