Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Changing default domain

General questions about VestaCP
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
cagatay
Posts: 119
Joined: Wed May 28, 2014 6:40 am

Changing default domain
  • Quote

Post by cagatay » Thu Dec 04, 2014 2:42 pm

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.
Top

Ton10
Posts: 6
Joined: Thu Dec 04, 2014 2:46 pm

Re: Changing default domain
  • Quote

Post by Ton10 » Thu Dec 04, 2014 2:50 pm

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?
Last edited by Ton10 on Thu Dec 04, 2014 4:47 pm, edited 1 time in total.
Top

cagatay
Posts: 119
Joined: Wed May 28, 2014 6:40 am

Re: Changing default domain
  • Quote

Post by cagatay » Thu Dec 04, 2014 2:53 pm

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"
Top

Ton10
Posts: 6
Joined: Thu Dec 04, 2014 2:46 pm

Re: Changing default domain
  • Quote

Post by Ton10 » Thu Dec 04, 2014 5:16 pm

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.
Top

ij3net
Posts: 2
Joined: Sat Aug 08, 2015 7:11 am

Re: Changing default domain
  • Quote

Post by ij3net » Sat Aug 08, 2015 7:14 am

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".
Top

Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Changing default domain
  • Quote

Post by Felix » Sat Aug 08, 2015 7:23 am

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.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password