Page 1 of 1
Changing default domain
Posted: Thu Dec 04, 2014 2:42 pm
by cagatay
Hello,
I want to change default domain (default.domain) to mydomain.com
How do I accomplish that?
oh, and I want my default domain (mydomain.com) to serve https only.
Thanks in advance.
Re: Changing default domain
Posted: Thu Dec 04, 2014 2:50 pm
by Ton10
cagatay wrote:Hello,
I want to change default domain (default.domain) to mydomain.com
How do I accomplish that?
oh, and I want my default domain (mydomain.com) to serve https only.
Thanks in advance.
If I'm understanding you correctly, you should remove that domain from the the WEB and DNS pannels, and then just add mydomain.com to the WEB panel, and it'll automatically create itself in the DNS panel aswell. Make sure to set your proper name servers in your USER section.
Check out this guide, it's one of the best I've ever found for VestaCP:
http://www.servermom.org/add-new-website-vesta-cp/1066/
On a side note, I want to ask: How can I check what my default hostname is, and can I change it?
Re: Changing default domain
Posted: Thu Dec 04, 2014 2:53 pm
by cagatay
Ton10 wrote:cagatay wrote:Hello,
I want to change default domain (default.domain) to mydomain.com
How do I accomplish that?
oh, and I want my default domain (mydomain.com) to serve https only.
Thanks in advance.
If I'm understand you correctly, you should remove that domain from the the WEB and DNS pannels, and then just add mydomain.com to the WEB panel, and it'll automatically create itself in the DNS panel aswell. Make sure to set your proper name servers in your USER section.
Check out this guide, it's one of the best I've ever found for VestaCP:
http://www.servermom.org/add-new-website-vesta-cp/1066/
On a side note, I want to ask: How can I check what my default hostname is, and can I change it?
Actually I want ip address to point "default" mydomain.com
now when I type ip address, it displays default.domain
if I delete default.domain then add a web... who knows what the ip will return.
there is no option in panel to "set this web as default"
Re: Changing default domain
Posted: Thu Dec 04, 2014 5:16 pm
by Ton10
cagatay wrote:Ton10 wrote:cagatay wrote:Hello,
I want to change default domain (default.domain) to mydomain.com
How do I accomplish that?
oh, and I want my default domain (mydomain.com) to serve https only.
Thanks in advance.
If I'm understand you correctly, you should remove that domain from the the WEB and DNS pannels, and then just add mydomain.com to the WEB panel, and it'll automatically create itself in the DNS panel aswell. Make sure to set your proper name servers in your USER section.
Check out this guide, it's one of the best I've ever found for VestaCP:
http://www.servermom.org/add-new-website-vesta-cp/1066/
On a side note, I want to ask: How can I check what my default hostname is, and can I change it?
Actually I want ip address to point "default" mydomain.com
now when I type ip address, it displays default.domain
if I delete default.domain then add a web... who knows what the ip will return.
there is no option in panel to "set this web as default"
The first domain that you add is going to be the domain that the IP address returns when you go to it directly.
If you delete default.default and everything else, and then just add mydomain.com to the WEB section (and it automatically gets added in the DNS section), then when you type in your server IP you will get mydomain.com by default. All other domains will just be setup as virtual hosts by Apache so don't worry about it. Go ahead and delete it and add your domain and enjoy.
Re: Changing default domain
Posted: Sat Aug 08, 2015 7:14 am
by ij3net
The first domain that you add is going to be the domain that the IP address returns when you go to it directly.
How to change it manually? I want setup as default domain that added "not first".
Re: Changing default domain
Posted: Sat Aug 08, 2015 7:23 am
by Felix
In
one of my posts here I explain how the "default" site is picked, when you enter only the IP address. This might help you.