OpenShift URL Masking [closed]

99封情书 提交于 2019-12-11 16:21:41

问题


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!

Dusty


回答1:


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.




回答2:


Basically you'll need to add an "alias" to your application via the rhc command line tool or through the web console. Here's two resources that will show you how to do that step by step:

https://www.openshift.com/blogs/domain-names-and-ssl-in-the-openshift-web-console
https://www.openshift.com/blogs/custom-url-names-for-your-paas-applications-host-forwarding-and-cnames-the-openshift-way



来源:https://stackoverflow.com/questions/24717774/openshift-url-masking

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!