How to configure subdomain in Yii 2, so he led on the module?

Hello.
Please tell me how can I customize yii2 and nginx so that when entering for example module.domain.com got to the address domain.com/module
Well and, accordingly, all controllers and exami inside the module.
June 10th 19 at 15:56
1 answer
June 10th 19 at 15:58
1. Set up a subdomain which leads to Your app
2. The application prescribes the appropriate URL rules

Find more questions by tags NginxYii