By default, all the applications created by OpenShift are subdomains of rhcloud.com. In this recipe, you will learn how to use your own domain name with the myapp
application you created in the Creating an OpenShift application using the rhc command-line client recipe.
To complete this recipe, you will need rhc installed on your machine. Also, we will make use of the OpenShift application created in the Creating an OpenShift application using the rhc command-line client recipe.
The first step is to buy a domain name from a domain registration provider. I will use GoDaddy, as I have few domains registered there, but you can just as easily choose a different domain provider. I have bought the
openshift-cookbook.in
domain name for this demonstration.Open your domain registration provider's DNS manager console, and add a
CNAME
record. TheCNAME
record lets you point one domain name to another. You can create a newCNAME
record that will...