Phil <phil.a.mcdonn...@...> writes:

> 
> Does anyone know how I can force all connections to myapp.heroku.com
> to run over https instead of http?  I think there are ways to
> configure this manually, but I'm wondering if it's possible with
> Heroku.  I have the ssl connection enabled for my app, but I want to
> make sure people typing in http://myapp.heroku.com get redirected to
> https.
> 
> Thanks,
> Phil
> 

Hi. Not sure if you are still looking for a way to redirect to https on heroku.
I created the rack-secure_only gem because I needed to handle exactly
what you described above.
Just use it as middleware in your rack app and it should work.

  use Rack::SecureOnly
  run MySupperDupperApp 

I have not tried it with rails... but i see no reason why it wouldn't work.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to