LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   changing the default page of apache (https://www.linuxquestions.org/questions/linux-software-2/changing-the-default-page-of-apache-601335/)

carobee 11-21-2007 01:06 AM

changing the default page of apache
 
hi everyone

i stuck with a problem. im trying to change the default page of apache and trying to set a new one. for this i have even modified httpd.conf. i have changed the DirectoryIndex part in httpd.conf file, but without any results. on startup its still loading the same page of index.html. please help. i need to sort it out quickly

reddazz 11-21-2007 02:42 AM

Hi and welcome to LQ.

What changes did you make to the DirectoryIndex section? If you just want to change the default page, backup the index.html in your htdocs directory and replace it with a different one.

carobee 11-21-2007 08:57 AM

i wanted to make one login.php as default page, so i added login.php just ahead of index.html

reddazz 11-21-2007 11:47 AM

Try renaming index.html to something like oldindex.html and restarting apache. If index.html is in the same directory as login.php, maybe its being loaded first.

carobee 11-21-2007 09:56 PM

even i tried to inculde only login.php in DirectoryIndex and not index.html, without much success.login.php is in the same dir as index.html. but in httpd.conf i have tried without including any files except login.php. the command that i had written in httpd.conf was

DirectoryIndex login.php

How do i find out whats wrong?

carobee 11-22-2007 01:32 AM

the problem is atlast resolved. when i had just included login.php and restated the apache server, everything worked ok and i was able to get my desired page on starting apache server.
thanks anyway


All times are GMT -5. The time now is 12:14 AM.