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

Automatic subdomains config

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
deepslam
Posts: 2
Joined: Wed Feb 10, 2016 10:01 am

Automatic subdomains config
  • Quote

Post by deepslam » Wed Feb 10, 2016 10:04 am

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

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

Os: CentOS 6x
Web: apache + nginx
Re: Automatic subdomains config
  • Quote

Post by tjebbeke » Wed Feb 10, 2016 1:41 pm

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

deepslam
Posts: 2
Joined: Wed Feb 10, 2016 10:01 am

Re: Automatic subdomains config
  • Quote

Post by deepslam » Thu Feb 11, 2016 7:21 am

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

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

Os: CentOS 6x
Web: apache + nginx
Re: Automatic subdomains config
  • Quote

Post by tjebbeke » Thu Feb 11, 2016 7:54 am

Normally you can add a wildcard domain as an alias of a web domain.
Top


Post Reply
  • Print view

4 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