How To Change Apache Home Page

To change Apache web server's home page, you need to edit the httpd.conf configuration file and specify a new page as default Home page. 

If your home page is created as "home.html" and is located in /var/www/html/home.html follow the steps below to set home.html as default home page


Edit configuration file
[root@server ~]# vi /etc/httpd/conf/httpd.conf
Go to the "DirectoryIndex" parameter (can find near 402nd line) and add the new page as default home page like below
DirectoryIndex home.html
# Now save the httpd.conf file
Click on image to enlarge
Restart the httpd daemon 
[root@server ~]#  service httpd restart

Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

Test new home page
Test new Home page by going to the home url of website.

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons