Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Using your own custom domain name


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.

Getting ready

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.

How to do it…

  1. 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.

  2. Open your domain registration provider's DNS manager console, and add a CNAME record. The CNAME record lets you point one domain name to another. You can create a new CNAME record that will...