Answer the question
In order to leave comments, you need to log in
How to set up a server for dynamic domains?
The task is to make dynamic sites, such as a site builder
, there are ready-made templates, the user selects for his site, the files are conditionally /var/www/site.com
all sites added by users are stored in the table site {id, domain, created_at, template_id}
as when accessing to the domain that is stored in the site table open /var/www/site.com?
the nginx+php-fpm bundle is configured on the server. How to make dynamic domains in nginx?
Answer the question
In order to leave comments, you need to log in
you need to generate the necessary configuration for nginx based on information from the database. Approximately what all hosting control panels do.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question