We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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?



77.7k
Accepted
answer

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



3.3k

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