如果你不是很清楚DNS運作方式,推薦Udacity上的課程:Introduction to Cybersecurityarrow-up-right
Lesson 3 Networking - Domain name system
當你使用Github student登入後,就可以免費獲得一個網域,為期一年。
透過這個討論(Setting up a custom domain with heroku and namecheaparrow-up-right)發現,只有www開頭的網址才能被Heroku接受成為Root domain,我測試的結果也是如此。但如果你沒有設置SSL Certificates,你的網站不會是secured。如果要有SSL Certificates,必須花$20/month,但這個服務只要升級成paid dynos就會有。如果有這個需求建議升級成paid dynos還比較便宜。
等候幾分鐘再測試你的網域,應該就可以看到你的服務以及你的custom網域名,但要注意,如果你需要SSL Certificates,必須付費升級為paid dynos。
Custom Domain Names for Appsarrow-up-right
Setting Up A Custom Domain For Your Heroku-Hosted Apparrow-up-right
Manually Acquiring an SSL/TLS Certificatearrow-up-right
How to install an SSL Certificate on Heroku?arrow-up-right
由上面文章發現,如果你的網域要SSL Certificate on heroku,你必須要跟heroku買這個服務,一個月20塊。
SSL in Heroku with a custom domainarrow-up-right
Heroku SSL Endpointarrow-up-right
How to setup SSL on Heroku for a Rails Applicationarrow-up-right
Last updated 5 years ago