简体   繁体   中英

Can a single Heroku app handle both http and https domains?

I have a single Ruby on Rails app running on Heroku that has about 50 domains pointing to it.

All of the domains are http.

There is a "master" app that I would like to convert to https.

Examples:

Master app is:

"child apps" :

Is it possible on Heroku to have the "master app" accept https and not affect the "child apps"?

Thank you!

Just of note: I do a quick check of the request_url in ApplicationController to determine if it is a "child app" and render the appropriate view.

Yes, this should be possible. You just don't want to config.force_ssl = true , as that'll redirect all your apps to HTTPS.

You really should serve all your apps over HTTPS, however, as any information sent over the wire will be visible to others.

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