简体   繁体   English

如何将我的openshift网站定向到我购买的gandi.net域名? 我试过了,但是不行吗?

[英]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.

相关问题 我已经从namecheap购买了域名,并通过自己的PC托管了网站,如何将域名与ip相关联? - I've bought a domain name from namecheap and I host my website from my own PC, how to associate domain name to ip? 尝试访问网站的域名时为什么会出现404错误,但是如果我的域名/住所能正常工作? - Why am I getting a 404 error when trying to access my website's domain name, yet if I domain name/home it works? 我在 AWS ECS 上部署了一个 react 应用程序并购买了一个自定义域,但我无法在域名前加上“www”访问它 - I deployed a react app to AWS ECS and bought a custom domain, but I can not access it with “www” before the domain name 我如何将我的www域名转发到根域 - How can i forward my www domain name to root domain 如何向公众发布DNS服务器,以便可以访问我的域名 - How do I publish my DNS Server to the public so that my Domain Name will be accessible 我的网站被污损了——我该如何修复? - My website is defaced — how do I fix it? 如何对我的网站进行单元测试? - How do I UnitTest my Website? 如何在 github 上托管我的网站 - How do I host my website on github 如何使我的网站具有可扩展性? - How do I make my website scalable? 我无法访问使用域名通过移动设备通过内部网络在IIS 8中托管的网站 - I cannot hit my website, hosted in IIS 8 on internal network via mobile device using domain name
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM