Skip to main content

Posts

Showing posts from April, 2014

Change the Apache Webserver Default Page

The Default Page of any webserver could be index.html or home.htm or index.cfm etc. to change the homepage or the order of homepage files in Apache you need to do the following: If you are on Linux: You need to edit the httpd.conf, so search for the file # find / -type f -name httpd.conf most likely your file will be under /usr/local/apache/conf/ so edit your file: #  edit  /usr/local/apache/conf/httpd.conf Search for the like DirectoryIndex in your file DirectoryIndex index.html index.htm default.htm index.php index.pl You may edit this line change the order ar a new homepage name like the below: DirectoryIndex home.php index.html index.htm default.htm index.php index.pl Save your work. You need to restart the apache now: # /etc/init.d/httpd restart Done!