Managing Domains and Routes
Page last updated:
If you are an administrator, you can manage custom shared domains and wildcard routes.
For additional information about managing routes and domains, refer to the following topic:
You can use a registered domain of your own and associate it with all organizations in your account. Use the cf create-shared-domain command to create a shared custom domain available to all organizations in your account.
$ cf create-shared-domain shared-domain.example.com
Use the cf delete-shared-domain command to delete a shared domain:
$ cf delete-shared-domain shared-domain.example.com
Note: Deleting a shared domain removes all associated routes, making any application with this domain unreachable.
Use the cf create-route command with a wildcard route by specifying the
The star operator,
*, signals a wildcard route to match any URL that uses your
domain, regardless of the host.
Note: You must surround the
* with quotation marks when referencing it using the Cloud Foundry Command Line Interface (cf CLI).
For example, the following command created the wildcard route “*.example.org” in the “development” space:
$ cf create-route development example.org -n "*"Create a pull request or raise an issue on the source for this page in GitHub