我想將Site5中的自定義域名指向heroku域名。我下面這個指南:https://devcenter.heroku.com/articles/custom-domains如何將Site5域名指向Heroku
裏面我Site5控制面板我選擇高級DNS區編輯器,並插入以下值:
Record type: CNAME
Record name: www
CNAME host: stark-plains-xxx.herokuapp.com
我保存這些值,但沒有當我訪問我的網站WWW變化.mysite.com。首頁仍然有默認索引。
命令host www.mysite.com
只給出我的網站的IP地址。
我做了一切正確嗎?謝謝。
有趣的是,如果您使用'https',則從裸域轉發到'www'將導致SSL證書檢查失敗,因爲轉發僅適用於'http'。 https://devcenter.heroku.com/articles/apex-domains和https://devcenter.heroku.com/articles/custom-domains#configuring-dns-for-root-domains還有一些討論 – srt32