Page 1 of 1

How to manage SubDomain in VestaCP Panel while using external name server?

Posted: Wed Mar 29, 2017 9:32 am
by tinkyawoo
Hi.

I want to allow my users to create their own subdomain in VestaCP Control panel and I dont want to use my own DNS server but using external DNS server such as cloudflare or Digital Ocean. Is it possible to allow my users to manage their own subdomain in VestaCP?

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Posted: Wed Mar 29, 2017 11:23 am
by skurudo
Make A record for your subdomain on external name server
or use wildcard and you don't need make A record every time, when you add subdomain.

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Posted: Thu Mar 30, 2017 12:01 am
by tinkyawoo
Thanks. That work well without managing DNS on VestaCP.

One problem though, that is if I use wild cast, if the subdomain web is not created on VestaCP, it would always falls to one particular website on my host. How can I create a default dedicated website to fall on if people browse non existing subdomain?

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Posted: Thu Mar 30, 2017 8:39 am
by skurudo
tinkyawoo wrote:Thanks. That work well without managing DNS on VestaCP.
Yep, if you use external dns, you should change records there ;-)
tinkyawoo wrote:One problem though, that is if I use wild cast, if the subdomain web is not created on VestaCP, it would always falls to one particular website on my host. How can I create a default dedicated website to fall on if people browse non existing subdomain?
With resctrictions in nginx conf:
viewtopic.php?t=10188#p57753

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Posted: Thu Mar 30, 2017 10:00 pm
by tinkyawoo
thanks for your pointer, that block accessing my raw IP and that's good.
But, as I have created A record for * to bypass creating every DNS for every single new subdomains, if I access non existing subdomain on my host, it still falls to that particular website that I created first on that host.

How should I configure to fall on a particular website I created as a lending page?

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Posted: Wed Apr 12, 2017 7:31 am
by John_Bour
I had the same problem and solved it by changing the first ligne in /etc/nginx/conf.d/default.conf from
listen 80;
to
listen IP:80;

Hopefully I have only one IP on the server and the tip is not surprising after all

Hope it help ;)

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Posted: Thu Apr 13, 2017 11:47 am
by tinkyawoo
How do you set non existing subdomain to fall on a particular website you hosted?