将mydomain.com重定向到不带www的openshift应用程序 [英] redirect mydomain.com to openshift app without www
问题描述
我正在尝试在Openshift上部署我的应用程序.
I am trying to deploy my app on Openshift.
我在Openshift上添加了www.mydomain.com
和mydomain.com
作为别名,并将cname记录'www'更改为myapp-mydomain.rhcloud.com
I've added www.mydomain.com
, and mydomain.com
as aliases on Openshift and changed the cname record 'www' to myapp-mydomain.rhcloud.com
当我尝试访问该应用程序时,这些是结果
when I try to access the app these are the results,
myapp-mydomain.rhcloud.com
-打开myapp
www.mydomain.com
-重定向到myapp
www.mydomain.com
- redirects to myapp
mydomain.com
-打开空白页(空白页的源链接到godaddy的停车位
看起来像这样http://mcc.godaddy.com/park/xxxxxxxxxxxxxx
mydomain.com
- opens a blank page (the source of the blank page links to a godaddy's parking
looks like this http://mcc.godaddy.com/park/xxxxxxxxxxxxxx
我如何使mydomain.com
指向myapp-mydomain.rhcloud.com
我试图更改指向184.168.221.xx
的域的'A'记录,但是它必须是IP地址而不是应用程序地址.
I have tried to change the 'A' record of the domain that pointed to 184.168.221.xx
but it needs to be an IP address not the app address.
非常感谢您的帮助.
推荐答案
我已通过将A记录更改为ip地址174.129.25.170
(这是由
I've accomplished forwarding by changing my A record to the ip address 174.129.25.170
which is a domain forwarding service provided for free by wwwizer, which will forward the non www
(empty, not subdomains) to www
version of the domain.
如果有其他解决方法,请告诉我
If any other workarounds, let me know,
这篇关于将mydomain.com重定向到不带www的openshift应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!