简体   繁体   中英

How to redirect my application to https directly on Heroku?

I have an application where I need to secure it with https. I have certificate on Heroku(paid version and certificate is automatically managed) and also, it writes that my app can be found at https://www.minibrocki.ch . But also, when I write name of my application in browser it gives me without https. I don't want that, I want to every time goes to https(force redirection to https). So, my question is, can I do that directly on Heroku and If I can, how to do that? Here is screenshot of my Heroku settings:

This is when I have just one domain:

在此处输入图片说明

And this happens when I want to insert new domain:

在此处输入图片说明

Heroku answered that very nicely in their documentation for each environment: Can Heroku force an application to use SSL/TLS? - Yes it can

If you want to take a deeper look into opportunities to configure Custom Domain Names for Apps Custom Domain Names for Apps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM