2016-04-03 98 views
2

我的配置如下:「ERR_NAME_NOT_RESOLVED」:CloudFlare的+ Openshift + NameCheap

  1. NameCheap只有CloudFlare的域名服務器。
  2. Openshift具有域別名從app-account.rhcloud.com改爲domain.com
  3. CloudFlare DNS設置沒有A記錄,但有兩個CNAME記錄:domain.com is an alias of app-account.rhcloud.comwww is an alias of domain.com
  4. 的CloudFlare頁規則http://www.domain.com/*http://domain.com/$1

基礎上的解決方案,這些都配置發現,對他人的工作在線。我domain.com是沒有問題的訪問,但www.domain.com提供了這個錯誤:

enter image description here

我顯然失去了一些東西。幫助將不勝感激。

回答

2

只是供參考:即使使用OpenShift免費計劃,您也可以擁有多個別名。只要到你的應用程序的別名列表,你可以添加另一個別名 - 網址是:https://openshift.redhat.com/app/console/application/xxxxx-yourapp/aliases

enter image description here

+0

好了,該死的,我希望他們作出更清晰。如果你只使用一個別名,那個鏈接只是說「更改別名」。謝謝(你的)信息。現在我不需要浪費在別名上的裝備:) – AHCo

+0

是的:)我找到了「幸運事故」;) –

0

Update: I stand corrected. See the chosen answer for the use of aliases which is a much better solution.

看來這個問題的解決辦法很簡單。問題是www.domain.com需要存在於OpenShift中。因爲我的帳戶是免費的,所以OpenShift沒有給我一個添加另一個域的選項。

爲了模仿這一點,在OpenShift中我添加了另一個應用程序:PHP 5.4,其域名別名爲www.domain.com,取代app-route-account.rhcloud.com

然後在CloudFlare中,我將www is an alias of domain.com更改爲www is an alias of app-route-account.rhcloud.com

而且,一切都很好。 :)

如果我使用高級OpenShift帳戶,那麼我可以在第一個應用程序中添加另一個域,如www.domain.com。我希望這可以幫助某人。