Multi Modules app on several domains

Hi

I need to build multi module app and for each module I need to point it on one different domain :

  • for module frontend -> exemple.com
  • for backend -> backend.exemple.com
  • for api -> api.exemple.com

How I can achieve this app structure?

Like any regular multi-module app. The caveat is to set up your router correctly: https://docs.phalconphp.com/en/3.0.2/reference/routing.html#hostname-constraints



521

Thanks Lajos

It seems that is what I need. For each module I need to create and mount a RouterGroup, that's it?

Yes, that should be it