Creating a subdomain for each user

When a new user is registered, many sites create a new domain, something like newuser.example.com Does this mean that they have separate directories for each user and copy the code base into the newly created directories and create subdomains? What is the best way to do this?

+3
source share
3 answers

Of course, the DNS rule * -> IP addresswill take care of adding subdomains quickly. Then it is processed by different host headers to the web server.

Apache , ( ), .

0

*.yourdomain.com , . , , / / ..

.. subdomain_fu

0

Source: https://habr.com/ru/post/1776139/


All Articles