Heroku SSL on root domain

后端 未结 6 1373
孤独总比滥情好
孤独总比滥情好 2020-12-02 05:26

I am trying to setup SSL for my heroku app. I am using the hostname based SSL add-on. The heroku documentation states the following:

Hostname based SSL will          


        
6条回答
  •  有刺的猬
    2020-12-02 05:48

    DNS redirects wouldn't care whether the inbound request is http or https so would maintain the original protocol - so would redirect http://foo.com to http://www.foo.com and the same for https.

    You'll need to do it within the application via the gem you found or some other rack redirect gem or if www. is a problem use the IP based SSL addon.

提交回复
热议问题