sp234sp
By:
sp234sp

VestaCP Multiple domain Problem

March 31, 2018 119 views
Nginx PHP CoreOS

I recently installed VestaCP on cent os.
My config:
Nginx+php-fpm
MariaDB 10.2
Php7.0

My first site is running smooth without any problem.

But when I add my 2nd site in vesta cp, and changed NS points to my droplets IP address from Domain register.
When I open my new site but it shows the content of old site.

I illustrated in details here.

Consider 2 domains.

  1. domain1.com 2.domain2.com

I created a subdomain for domain 1. name - dash.domain1.com
In dash.domain1.com I installed my VestaCP. Also I add my main domain domain1.com

Its running smoothly without any problem.

Now I add my 2nd domain domain2.com.
My registrar is Godaddy. What I did, I keep same the nameserver as default in domain registrar. Only I changed the A record in Godaddy DNS management tools.

So for my domain 2 . NS is default godaddy NS.
In DNS record I add the droplets IP in A record.

When I open domain2.com in browser, it shows the content from dash.domain1.com, Not from the domain1.com.

How can I fixed this issue.

Any help will be appreciated!!

1 Answer

WUT U DO IS CLICIK OUT OF IT THEN CUM BACK IN AND TRY AGAIN. IT WILL REFRESH THE SERVER AND MAKE SURE THAT THE ERROR ISNT HAPPENIGN BECUZ IF IT DUZ THEN YOU WILL HAVE PROBLEMS WITH THE SERVER IN THE FUTURE SO B CARFOL.

Have another answer? Share your knowledge.