How to bind domain names to the pages?

Good afternoon.
There is a web site (Django, Postgresql, Nginx) everything on a single VDS.
Now for the user's personal page available through the subdomains of the form:
Want to provide customers with the opportunity to access the page via your domain name, for example:
How to represent.
The user buys a domain name gives nameserver's? Then our system registers domain zone? Then generated the config for nginx?
Tell me how best to proceed and organize this thing? To Configure Bind9? What about nginx?
Don't know where to start.
July 9th 19 at 10:45
1 answer
July 9th 19 at 10:47
To the host that identifies the page ( to specify default_server

Will turn out that this host will work for any domain (unknown host), which resolved IP of your server. Domain already find out whose it was and which page to show.

The user need only specify the IP of your servers or better CNAME, suddenly you move will be
At the same time to the CNAME for the www record offer wwwizer to redirect -> - Redirect from on no web server service? - Daphne_Roob commented on July 9th 19 at 10:50

Find more questions by tags DjangoDomain name systemNginx