Changing the default index file in VestaCP hosting

July 3, 2015   /   by Marco  / Categories :  Technology
DirectoryIndex index.html index.php

I had to launch a new website and needed to display the index.html file instead of the default index.php file.

The index.html file is use as a coming soon page whereas the index.php is part of the Content Management System. In order to resolve this issue I had to use these steps:

NOTE: I use CentOS with nginx so these steps may be different for you

1. Locate your httpd.conf file. In my case it was located in /home/admin/conf/web

2. Open the httpd.conf file and go to the section that has VirtualHost and find the relevant website address. eg if your website is businesslegions.com then go to that section.

Example:

[codesyntax lang=”php”] [/codesyntax]

3. What you need to do now is add the following line:

[codesyntax lang=”php”] [/codesyntax]

4. This makes the webserver display index.html first before index.php. So the final configuration should look like this:

DirectoryIndex index.html index.php

FEEDBACK
I hope this has helped some of you. If you need any further help then please let me know.
DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


HOW TO REMOVE WINDOWS 10 WELCOME SCREEN

HOW TO REMOVE WINDOWS 10 WELCOME SCREEN

Have you been getting the blue Windows 10 Welcome screen? It normally pops up after installing Windows 10 or after a Windows 10 update. I’ve been receiving a lot of questions relating to this and there are a few ways to remove it. One way it to change the settings in the registry setting but […]

read more
6 REASONS TO SYNCHRONIZE YOUR DATA

6 REASONS TO SYNCHRONIZE YOUR DATA

Technology changes and complex business requirements might compromise product data, impacting negatively on the company. Data synchronization ensures that information across the production chain is consistent. BizCaps achieves such streamlining with tools that collect data and sync it from the supplier to the consumer, increasing efficiency. Here are six reasons you require data synchronization. Increased […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

site auditing tools