如何将openshift网站导向我购买的gandi.net域名?我试过了,但它不起作用?

时间:2021-05-25 10:44:26

Okay so I created a web app and am hosting it on openshift. Right now, they just gave me a CNAME something like myapp-someappname.rhcloud.com. So they told me to use that CNAME to redirect to my domain.

好的,所以我创建了一个Web应用程序,并在openshift上托管它。现在,他们只给了我一个类似myapp-someappname.rhcloud.com的CNAME。所以他们告诉我使用该CNAME重定向到我的域名。

Now on GANDI I bought a .com domain. 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. Now I have no idea how to redirect both of them to the www one.

现在在GANDI上我买了一个.com域名。另一件事是,我没有意识到www.website.com和expert.com之间存在很大差异,所以我买的只是website.com。现在我不知道如何将它们重定向到www。

For the CNAME I entered in gandi in expert mode www 10800 myapp-someappname.rhcloud.com. (with the dot at the end).

对于我在专家模式www 10800 myapp-someappname.rhcloud.com中输入gandi的CNAME。 (最后用点)。

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. When I go to just website.com, it actually takes me to gandi and says that the owner parked there or something.

我今天早上醒来,它仍然无法正常工作。此外,当我访问www.website.com(顺便说一下,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. How do I just simply get this to work? I am so frustrated.

我如何简单地让我的网站工作?我在openshift上托管了它,有了CNAME,而在gandi我在前面买了一个没有www的.com域名,所以我对此并不了解。我该如何才能让它发挥作用?我很沮丧。

1 个解决方案

#1


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,一个Content Delivery Network,这就是我使用的。

Follow these steps to set it up: How to Use a CDN with Your OpenShift Application

请按照以下步骤进行设置:如何在OpenShift应用程序中使用CDN

#1


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,一个Content Delivery Network,这就是我使用的。

Follow these steps to set it up: How to Use a CDN with Your OpenShift Application

请按照以下步骤进行设置:如何在OpenShift应用程序中使用CDN