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 |
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. |
i wanted to make one login.php as default page, so i added login.php just ahead of index.html
|
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.
|
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? |
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. |