HTTPS using WEBrick in Rails app


I want to run HTTPS request in my Rails app.
I am using NetBeans with WEBrick.

Please guide me on how to run my rails app. in HTTPS request.

Your help will be highly appreciated.

Thanks in advance,

While it’s probably possible to use HTTPS with WEBrick I think it is
more common for people to handle this through Apache or Nginx when they
deploy their application (which they then setup as a proxy in front of a
cluster of thins/mongrels/unicorns/etc OR through Phusion Passenger).

If you really do need HTTPS in WEBrick then you can probably do it by
modifying Rails itself slightly like shown in this article:

I hope this helps :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs