LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   changeing default document from index.html in apache (https://www.linuxquestions.org/questions/linux-software-2/changeing-default-document-from-index-html-in-apache-222427/)

thebover 08-25-2004 07:12 PM

changeing default document from index.html in apache
 
Does anyone know how to change the default document from index.html to index.php?

i did use to know but its been forever since i set up apache, thanks for your help

thebover 08-25-2004 07:27 PM

if i had only looked closer.


DirectoryIndex

Lleb_KCir 08-25-2004 08:16 PM

IIRC its in the httpd.conf that alows you to set what can and can not be the homepage. you can IIRC also set multiple extentions as the home/starting point for your web page.

taxtropel 03-30-2005 09:26 PM

the setting is found /etc/httpd.conf
or /etc/apache/httpd.conf
or
/etc/http/httpd.conf


anyhow you can grep for it
grep -n "index.html" /path/to/your/httpd.conf
and it will tell you exactly where the entry is

sorry I don't have anymore details, I'm in transistion to my new system and do not have an example
httpd.conf on hand


when you do find it to change it (It will be pretty obvious)
the first entry get's highest priority

index.php index.phtml index.html

the server will look first for index.php then index.phtml, and so on.


All times are GMT -5. The time now is 06:08 PM.