Answer the question
In order to leave comments, you need to log in
How to implement dynamic subdomains on nginx?
There is a local server. Nginx + Apache2. Is it possible to create an unlimited number of subdomains like subdomain.localhost/. That is, without prescribing anything in hosts?
In the future, transfer subdomain.localhost/page_id to Apache with this path localhost?sub=$subdomain&id=page_id
PS subdomain can be anything, not previously known. Names are assigned by users.
This is done so that each user can create his own blog by assigning a name (subdomain)
to it and accessing a link like, for example, myblog.localhost/123.
Answer the question
In order to leave comments, you need to log in
Use Denver or LAMP if you want to test/develop. (Googling, the first link in the search results will tell you everything)
If you want to make _this_ work for users in production, then stop immediately. Raise the server, though with the same LAMP on Windows and let users go username.servername.domain or username.servername no localhost \ host files!
You can take a look at laravel.com/docs/queues
very easy to use, quite powerful, can be scaled
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question