HTTPS using WEBrick in Rails app

Hello,

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: http://www.nearinfinity.com/blogs/chris_rohr/configuring_webrick_to_use_ssl.html

I hope this helps :slight_smile: