Page 1 of 1

How to change default index.html page

Posted: Thu Jan 16, 2014 11:01 am
by misak35
Hi, i just installed VestaCP and need to change default index.html page.. How to do it?

Re: How to change default index.html page

Posted: Thu Jan 16, 2014 5:05 pm
by nightstryke
1. Login to the panel
2. Setup an FTP login
3. Login via FTP with an FTP program. (Try Filezilla)
4. Delete or Upload your own Index.html via FTP.

Done!

Re: How to change default index.html page

Posted: Thu Jan 16, 2014 8:09 pm
by misak35
well, I didn't mean that. I thought the start index page after vestacp installed. So, all domains that are added have the default page, need edit that page :D ok?

Re: How to change default index.html page

Posted: Mon Feb 10, 2014 10:39 am
by skid
The default index file is located here /usr/local/vesta/data/templates/web/skel/public_html/index.html

Re: How to change default index.html page

Posted: Sat Nov 15, 2014 9:26 pm
by AnonyHF
skid wrote:The default index file is located here /usr/local/vesta/data/templates/web/skel/public_html/index.html
I edited it and see no difference, when i visit my ip

http://192.184.93.36/

Re: How to change default index.html page

Posted: Sat Dec 20, 2014 8:51 pm
by Afternova
Hello,

I have the same problem, no difference. Any Suggestions?

Thank You!

Re: How to change default index.html page

Posted: Sun Dec 21, 2014 9:11 pm
by smokincomputers
Steps to change Default index.html file that is loaded to the accounts upon creation:

* This will NOT change the index.html file on any already created Domains for accounts. If that were to be the case... anything you already had setup would be overwritten which is obviously not what most people would want.

1) backup the original file. (optional, recommended)

Code: Select all

cp /usr/local/vesta/data/templates/web/skel/public_html/index.html /usr/local/vesta/data/templates/web/skel/public_html/index.html.original 
2) locate the file /usr/local/vesta/data/templates/web/skel/public_html/index.html

Code: Select all

cd /usr/local/vesta/data/templates/web/skel/public_html 
3) Edit the file to display the you want for your default first page.
*Choose only one option below. I just included both common editors for ease of copy and pasting.

Code: Select all

nano index.html

Code: Select all

vi index.html
4) Insert your changes to the code so the page will display the way you want.
* It is recommended to put your code in a .html file on your computer, then open with your web browser to verify your coding works and there are no errors. Then you can just copy and paste that known good code into your /usr/local/vesta/data/templates/web/skel/public_html/index.html file.
5) All domains that are NEWLY added OR Removed/Re-added will have the new index.html file applied

Re: How to change default index.html page

Posted: Sat Dec 12, 2015 1:57 pm
by janus
Hi it works i just uploaded index.html to my default public_directory and just used cp command to the directory specified above. But it will not work on allready excisting sites so maybe that's what confuse about it only newly created sites if you have only the old default just delete and create a new web with the same credentials and you will see your new default index.html

As you can see on my new created web Love vesta CP
Just needs work on webmail part

Janus Rokkjær