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 |
[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:
Post a Comment