OpenShift URL屏蔽 [英] OpenShift URL Masking

查看:111
本文介绍了OpenShift URL屏蔽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取我的OpenShift URL http://stats-lebronjamesstats.rhcloud.com/显示为lebronjamesstats.com.我从Godaddy购买了域名,并设置了转发功能,并且CNAME记录的子域www指向stats-lebronjamesstats.rhcloud.com.我还运行了alias OpenShift命令:

How can I get my OpenShift URL http://stats-lebronjamesstats.rhcloud.com/ to show as lebronjamesstats.com. I bought the domain name from Godaddy and setup forwarding and a CNAME record that has subdomain www point to stats-lebronjamesstats.rhcloud.com. I also ran the alias OpenShift commands:

rhc alias add stats lebronjamesstats.com
rhc alias add stats www.lebronjamesstats.com

我无法进行屏蔽,因为这会在浏览器中中断.感谢您的帮助!

I CAN'T do forward with masking because that breaks in browsers. Thanks for your help!

尘土飞扬

推荐答案

能够获取www的cname记录,以指向我的OpenShift网址,然后从lebronjamesstats.comwww.lebronjamesstats.com进行转发,而无需进行屏蔽.现在,所有HTTP请求都解析为www.lebronjamesstats.com.我可以使用第三方重定向器获取lebronjamesstats.com,以在URL框中显示.我可能稍后再讨论.

Was able to get a cname record for www to point to my OpenShift url and then do forwarding from lebronjamesstats.com to www.lebronjamesstats.com WITHOUT masking. All HTTP request now resolve to www.lebronjamesstats.com. I could use a third party redirector to get lebronjamesstats.com to show in the URL box. I might pursue this later.

这篇关于OpenShift URL屏蔽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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