Changing the default index file in VestaCP hosting
July 3, 2015 / by Marco / Categories : Technology
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:
<VirtualHost 10.10.10.10:8080>
ServerName businesslegions.com
ServerAlias www.businesslegions.com
ServerAdmin info@businesslegions.com
DocumentRoot /home/admin/web/businesslegions.com/public_html
ScriptAlias /cgi-bin/ /home/admin/web/businesslegions.com/cgi-bin/
Alias /vstats/ /home/admin/web/businesslegions.com/stats/
Alias /error/ /home/admin/web/businesslegions.com/document_errors/
#SuexecUserGroup admin admin
CustomLog /var/log/httpd/domains/businesslegions.com.bytes bytes
CustomLog /var/log/httpd/domains/businesslegions.com.log combined
ErrorLog /var/log/httpd/domains/businesslegions.com.error.log
<Directory /home/admin/web/businesslegions.com/public_html>
AllowOverride All
Options +Includes -Indexes +ExecCGI
</Directory>
<Directory /home/admin/web/businesslegions.com/stats>
AllowOverride All
</Directory>3. What you need to do now is add the following line:
DirectoryIndex index.html index.php4. This makes the webserver display index.html first before index.php. So the final configuration should look like this:
OTHER ARTICLES YOU MAY LIKE
FILMORA 15.2.3 UPDATE: DID IT FIX PLAYBACK JITTER? A PRACTICAL TEST WITH GPU SETTINGS
Wondershare Filmora has received a new point release, and for many editors the first question is simple. Has this update finally fixed that annoying playback jitter in the preview window. If you have felt a stutter during editing that makes your footage look as if frames are being skipped or shuffled rather than played smoothly, […]
read more
STOP NOISY CALLS: THE ANDROID SETTING YOU SHOULD SWITCH ON TODAY
Phone calls still matter. Whether you’re speaking to a client, checking in with family, or handling something urgent on the move, clarity can make or break the conversation. If you’ve ever found yourself apologising for the construction noise behind you, the wind across your microphone, or the café chatter muddling your words, there’s an Android […]
read more




