Automatic subdomains config
Automatic subdomains config
Hello!
I'm use Vesta CP and it s perfect!
But i'm have question: i'm need automatic subdomains 4 levels, example:
<id>.subdomain.domain.com
Where id is generated value.
Do you have any idea?
Thank you!
I'm use Vesta CP and it s perfect!
But i'm have question: i'm need automatic subdomains 4 levels, example:
<id>.subdomain.domain.com
Where id is generated value.
Do you have any idea?
Thank you!
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Automatic subdomains config
You can use the API to generate your domains.
Or if all the subdomains need to point to one web directory (ex.: 1.subdomain.domain.com, 2.subdomain.domain.com need to point to subdomain.domain.com) You can create a wildcard alias. (*.subdomain.domain.com)
In your DNS section, you can create a '*' (wildcard) A record.
Or if all the subdomains need to point to one web directory (ex.: 1.subdomain.domain.com, 2.subdomain.domain.com need to point to subdomain.domain.com) You can create a wildcard alias. (*.subdomain.domain.com)
In your DNS section, you can create a '*' (wildcard) A record.
Re: Automatic subdomains config
Hello!tjebbeke wrote:You can use the API to generate your domains.
Or if all the subdomains need to point to one web directory (ex.: 1.subdomain.domain.com, 2.subdomain.domain.com need to point to subdomain.domain.com) You can create a wildcard alias. (*.subdomain.domain.com)
In your DNS section, you can create a '*' (wildcard) A record.
Thank you for answer!
Wildcard record in DNS i'm already have and it works, but when i'm visit this domain, Vesta CP return:
default.domain
How i can add wildcard subdomain in control panel? When i'm trying add *.subdomain.site.ru i'm get message:
Subdomain name is not valid :(
Thank you for reply!
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Automatic subdomains config
Normally you can add a wildcard domain as an alias of a web domain.