Use the same root domain across multiple projects

We have two very similar projects and they’ll be served onto the same root domain, project1.mysite.com and project2.mysite.com.
Since we’re using the public IPs of our cluster to connect DNS to P.sh, I do know you can only add a root domain once to the entire cluster (eu-2 in my case). In normal circumstances, you’ll add mysite.com as (default) domain and using routes.yaml to handle your routing. But what if we provide a full domain, rather then a root domain to our domains? platform domain:add project.mysite.com rather then platform domain:add mysite.com.

Is this possible of does it have any drawbacks in using this approach?

If I understand correctly, this is no problem. You’d just have a route like

https://{default}:
...

for each, and the default domain would be the full subdomain string.

1 Like