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 Web Server
  • Search

How can I change a web domain?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
weirdaljr
Posts: 14
Joined: Tue Jul 28, 2015 2:46 pm

How can I change a web domain?
  • Quote

Post by weirdaljr » Thu Oct 01, 2015 1:42 pm

Hello,

I have a site running on Vesta for a year that was originally established as a subdomain (vps.domain.com), and when the domain was migrated nearly a year ago it needed to be switched from the subdomain to the root domain and since I didn't see a was in Vesta to do this I just added the domain as a alias of the subdomain.

That worked mostly, even though it seemed like a wonky workaround I didn't have any major issues until now. I added a SSL certificate, and it seems it is not working because of the face the cert is not for the subdomain.

So how can I manually change the vps.domain.com to domain.com in Vesta? I tried to help myself, but I was not clear on where Vesta stored this data. Is it in a DB I can change, or is their some other way from SSH?
Top

Govo
Posts: 26
Joined: Mon Oct 26, 2015 4:04 pm

Re: How can I change a web domain?
  • Quote

Post by Govo » Wed Oct 28, 2015 10:31 pm

Hi
Take a look at the config files.
You will need to change the apache config files and the niginx

More on them in vestacp docs

Cheers
Govo
Top

mach
Posts: 77
Joined: Tue Oct 27, 2015 6:34 pm

Re: How can I change a web domain?
  • Quote

Post by mach » Thu Oct 29, 2015 9:36 am

you can change it from the panel in vestacp ? why the hell you need the config file ????
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: How can I change a web domain?
  • Quote

Post by tjebbeke » Thu Oct 29, 2015 9:58 am

mach wrote:you can change it from the panel in vestacp ? why the hell you need the config file ????
You can't edit the domain name in the control panel.


There is no simple way to do this quickly :(
But you can try to create domain.com. Then you move the files from /home/username/web/vps.domain.com/public_html to /home/username/domain.com/public_html
Top

mike08
Posts: 160
Joined: Sat Jun 20, 2015 7:12 am

Os: Debian 6x
Web: apache + nginx
Re: How can I change a web domain?
  • Quote

Post by mike08 » Thu Oct 29, 2015 12:32 pm

Yeah you can do something like

Code: Select all

cp -r /home/username/web/subdomain.domain.tld/public_html/* /home/username/web/domain.tld/public_html/
It would be faster to move your files from one dir to another, btw you have to add the web domain before moving or copying your site.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • 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