Customer would like TAS support routes to 4 different apps with these mappings:
app1 - domain.example.com
app2 - api.domain.example.com
app3 - sandbox.domain.example.com
app4 - api.sandbox.domain.example.com
Note: all or the apps are for the same org, app 1 and 2 are in the same space, app 3 and 4 are in same space.
When they tried to create a new private domain, it errored out as below:
$ cf create-private-domain ORG api.sandbox.domain.example.com Creating private domain api.sandbox.domain.example.com for org ORG as ###### The domain name "api.sandbox.domain.example.com" cannot be created because "domain.example.com" is already reserved by a route
This is due to they've already have a shared domain "example.com" and one app with route "domain.example.com".
Note: You can create a private subdomain for a private parent domain only if the domains belong to the same org.
6 .Push App3 with "--no-route" and map route: cf map-route <App3_name> sandbox.domain.example.com