How to add your own domain to anynines and let them point to your application using cf CLI v6
Note: This guide uses the Cloud Foundry CLI version 6. The instructions below are not compatible with any cf version < 6. Click here to read how to install the cf CLI v6.
Note 2: You need to have the organization manager role to be able to assign domains to your organizations. Please have a look at our article on anynines permissions in case you need to assign the needed roles to your team members.
To get your applications running on anynines with your own custom domain you have to point your domain to our servers first. These settings can be managed by your domain provider. Login into your domain provider's customer portal and locate the DNS settings for your domain.
Please set up the CNAME-Record, and specify the following address: aws.ie.a9sapp.eu. This ensures that you will always get routed to the right address.
!Note! Once you added the CNAME-Record it might take up to 24 hours before the changes are applied.
You can manage your custom domains with the cf command line tool:
1) Make your domain available for assigning to applications inside your organization:
cf create-domain <your-organization> <yourdomain.com>
2) Assign your domain to an application by running:
cf map-route <app-name> <yourdomain.com>
you also can assign a subdomain:
cf map-route <app-name> <yourdomain.com> -n <subdomain>
Unmapping domains from applications
If you want to unmap a domain from an application, you can use the 'cf unmap' command:
cf unmap-route <app-name> <yourdomain.com> -n <subdomain>
don’t specify the -n option if you don’t like to unmap a subdomain.
Please sign in to leave a comment.
Comments
0 comments