R
R
roa2016-05-29 17:20:50
Django
roa, 2016-05-29 17:20:50

How to link domain names to pages?

Good afternoon.
There is a web site (Django, Postgresql, Nginx) everything is running on one VDS.
Now personal pages are available for users through subdomains like: user1.website.ru
We want to provide customers with the ability to access the page through their domain name, for example: super-user.ru.
As I present.
The user buys a domain name prescribes nameserver'y? Then our system prescribes a domain zone? Then the config for nginx is generated?
What is the best way to proceed and organize this business? Set up Bind9? What about nginx?
I don't know where to start.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2016-05-29
@Arik

To the host that defines the page (user1.website.ru) specify default_server
nginx.org/ru/docs/http/request_processing.html
It turns out that this host will work for any domain (unknown host) that resolves your server IP. Find out for yourself whose domain it is and which page to show.
The user only needs to specify the IP of your server or better CNAME, suddenly you will have a move

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question