I want to make it so that if a category sub_name is created in the folder of any site, a subdomain name.site.ru is automatically created

On the server, a bunch of nginx, like the front end to apache is ubuntu 12.10 Are there examples of endings for apache and nginx, where you can implement something like that?

In principle, I could do it myself by inserting regular ones into the right places in the configs. The question is, will everything work if you register rehexps in the existing config? Can you help with regular ones then? (I'm bad with them) And the configuration example is ready.

  • why do you need apache? - pyatak

1 answer 1

In the nginks, the regulars are used quite well, in the apache in the config file - not sure. In the Apache probably through .htaccess it will be necessary to drive.