[英]How do I direct my openshift website to a gandi.net domain name I bought? I tried, but it's not working?
Okay so I created a web app and am hosting it on openshift. 好的,所以我创建了一个Web应用程序并将其托管在openshift上。 Right now, they just gave me a CNAME something like myapp-someappname.rhcloud.com.
现在,他们只是给了我一个CNAME,例如myapp-someappname.rhcloud.com。 So they told me to use that CNAME to redirect to my domain.
因此,他们告诉我使用该CNAME重定向到我的域。
Now on GANDI I bought a .com domain. 现在在GANDI上,我买了一个.com域。 Another thing is, I didn't realize there's much of a difference between www.website.com and just website.com, so the one I bought was just website.com.
另一件事是,我没有意识到www.website.com和只是website.com之间有很大的区别,所以我买的就是website.com。 Now I have no idea how to redirect both of them to the www one.
现在我不知道如何将它们两者都重定向到www。
For the CNAME I entered in gandi in expert mode www 10800 myapp-someappname.rhcloud.com. 对于CNAME,我以专家模式输入gandi www 10800 myapp-someappname.rhcloud.com。 (with the dot at the end).
(最后一个点)。
I woke up this morning, it's still not working. 今天早上我醒了,它仍然没有工作。 Also, when I go to www.website.com (Btw, website.com isn't my website, I'm just saying as an example) it just says app not found on server.
另外,当我访问www.website.com(顺便说一句,website.com不是我的网站,我只是在说一个例子)时,它只是说服务器上找不到应用程序。 When I go to just website.com, it actually takes me to gandi and says that the owner parked there or something.
当我只访问website.com时,实际上是带我到gandi,说店主停在那儿。
So, what's the difference, and why does it say that? 那么,有什么区别,为什么这么说呢?
How do I just SIMPLY get my website to work? 我如何仅使我的网站正常工作? I hosted it on openshift, have the CNAME, and at gandi I bought a .com domain with NO www in the front, so I don't know much about that.
我将其托管在openshift上,并拥有CNAME,然后在gandi我买了一个.com域名,前面没有www,所以我对此并不了解。 How do I just simply get this to work?
我如何简单地使它起作用? I am so frustrated.
我很沮丧
Here's a similar question regarding Heroku instead of Openshift, but you might easily be lost in the detailed configuration. 这是关于Heroku而不是Openshift的类似问题 ,但是您可能很容易迷失在详细的配置中。
To simplify things, I'd recommend using Cloudflare, a Content Delivery Network, which is what I use. 为简化起见,我建议使用Cloudflare,这是我使用的内容交付网络。
Follow these steps to set it up: How to Use a CDN with Your OpenShift Application 请按照以下步骤进行设置: 如何在OpenShift应用程序中使用CDN
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.