如何使用OpenShift为裸域添加别名? [英] How do I add an alias for a naked domain with OpenShift?

查看:87
本文介绍了如何使用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.

推荐答案

这是一个两步过程:

  1. 首先,请确保您有一个DNS提供程序,它提供对裸CNAMES的支持,然后添加一个或多个CNAME条目,这些条目指向OpenShift为应用程序提供的URL(APPNAME-NAMESPACE.rhcloud. com或类似名称.
  2. 接下来,使用rhc alias命令让OpenShift知道,只要通过DNS中配置的任何CNAME接收到请求,您都希望您的应用程序可用. 此步骤也可以通过您的 OpenShift应用管理仪表板在网络上完成.
  1. First, make sure that you have a DNS provider that offers support for naked CNAMES, then and add one or more CNAME entries that point to the URL that OpenShift provided for your application (APPNAME-NAMESPACE.rhcloud.com or similar).
  2. 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 the CNAMEs 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆