Configuring for Multi-Tenancy
Sometimes you need to run multiple applications on the same server. This could be because none of those applications has enough load to justify having a dedicated server for itself or it could be because all the apps on the server share many resources. Whatever the reason, you can achieve multi-tenancy for your application with Maestro.
To host multiple applications on the same server, we need to define each one as a separate service. This can be done using the
This, however, has a problem: all applications share the same public ports (80 and 443). This means traffic coming to the server on port 80 (or 443) will be randomly served by any of the applications each time.
To fix this issue we can use the Domain Matching feature. Domain Matching allows us to share ports and split the traffic by the URL domain name that the client has requested:
In this example, we split the traffic based on the requested domain. As you can see you can match traffic based on multiple domains as well as wildcard (
See Custom Service Configuration for more information on