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 |
if i had only looked closer.
DirectoryIndex |
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.
|
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. |