Page 1 of 1

Location of and meaning of "It worked!" page

Posted: Tue Dec 08, 2015 11:58 pm
by alanms
I just set up a new domain and IP on a Vesta VPS. After finishing all the configuation, the domain pointed to a cheerful page like:

It worked!

Powered by Vesta

Great. So I navigated to /home/admin/web/this-domain.com/public_html to start modifying files, starting with removing that "It worked!" default page.

Except there was no "It worked!" page. There was a page like:

this-domain.com

Powered by Vesta

So where on the server is this "It worked!" page which my domain is pointing to?

And what does it mean if the domain is pointing there, instead of to its own web folder?

Re: Location of and meaning of "It worked!" page

Posted: Wed Dec 09, 2015 12:58 am
by alanms
With no help from the docs or from here I did a system wide search on html files and eventually found it.

It's /var/www/html/index.html

So the question becomes, why is my domain pointing at /var/www/html/index.html instead of its own directory?

It's worth mentioning that when I created the "web" entry, it ran into a bizarre error I couldn't find any info about, saying "Error my-domain.com exists" - but it all seemed to work fine.

Maybe there's some "save config" step it failed to do because of this bizarre unexplained error?

Re: Location of and meaning of "It worked!" page

Posted: Wed Dec 09, 2015 1:01 am
by alanms
This is so dumb. Why is there no explanatory text to anything?

It turns out that:

- If you stick with default settings, with "Web Template HTTPD" set to "Default", it creates the folders for the site but does absolutely nothing with them, and continues to point the domain at /var/www/html
- To get it to actually use the directories it creates, you have to switch "Web Template HTTPD" to "Hosting"

How about some tooltip text, or UI labels, or... anything?

Re: Location of and meaning of "It worked!" page

Posted: Mon Mar 14, 2016 6:28 pm
by alanms
...and then if you use "Hosting" it overrides your Apache settings with a bunch of secret local settings hidden in /usr/local/vesta/data/templates/web/httpd - see viewtopic.php?f=11&t=5262&p=41132#p41132

So you have to set it to hosting then set it back again to default... I thought control panels were supposed to make things easier?