I have a project working on yii2 (backend nginx). The project has several modules, it can be conditionally called:
- Category 1 (cat1)
- Category 2 (cat2)
It is required to implement the functionality so that when requesting cat1.coolsite.example
, it opens a module that is available as coolsite.example/cat1
. Accordingly, the second category