如何使用OpenShift为裸域添加别名? [英] How do I add an alias for a naked domain with OpenShift?
问题描述
如何让我的裸域指向我的Openshift应用程序?
How can I make my naked domain to point to my Openshift application?
可以在Openshift在线仪表板上完成它还是只能通过rhc
实用程序进行配置?但是我不确定要执行哪些步骤.
Can it be done in the Openshift online dashboard or it can only be configured through the rhc
utility? However I am not sure which the steps to do it.
推荐答案
这是一个两步过程:
- 首先,请确保您有一个DNS提供程序,它提供对裸
CNAMES
的支持,然后添加一个或多个CNAME
条目,这些条目指向OpenShift为应用程序提供的URL(APPNAME-NAMESPACE.rhcloud. com或类似名称. - 接下来,使用
rhc alias
命令让OpenShift知道,只要通过DNS中配置的任何CNAME
接收到请求,您都希望您的应用程序可用. 此步骤也可以通过您的 OpenShift应用管理仪表板在网络上完成.
- First, make sure that you have a DNS provider that offers support for naked
CNAMES
, then and add one or moreCNAME
entries that point to the URL that OpenShift provided for your application (APPNAME-NAMESPACE.rhcloud.com or similar). - Next, use the
rhc alias
command to let OpenShift know that you would like your application to be made available whenever a request is received via any of theCNAME
s configured in your DNS. This step can also be completed on the Web via your OpenShift app management dashboard.
例如,如果您想在wordup.com
上找到一个名为wordpress
的OpenShift应用程序,则rhc alias
命令可能如下所示:
For example, if you had an OpenShift application named wordpress
that you wanted available at wordup.com
, your rhc alias
command might look like this:
rhc alias add wordpress wordup.com
我在这里写了一篇帖子来帮助回答这个问题: https://www.openshift.com/blogs/domain-names-and-ssl-in-the-openshift-web-console
I wrote up a post to help answer this question here: https://www.openshift.com/blogs/domain-names-and-ssl-in-the-openshift-web-console
这篇关于如何使用OpenShift为裸域添加别名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!