# HTTPS using WEBrick in Rails app

**URL:** <https://www.ruby-forum.com/t/https-using-webrick-in-rails-app/204581>\
**Category:** Rails\
**Created:** [March 16, 2011, 5:48am UTC](https://www.ruby-forum.com/t/https-using-webrick-in-rails-app/204581 "2011-03-16T05:48:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 16, 2011, 5:48am UTC](https://www.ruby-forum.com/t/https-using-webrick-in-rails-app/204581/1 "2011-03-16T05:48:16Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![kunjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/54ee81/32.png) [@kunjan](https://www.ruby-forum.com/u/kunjan)\
**Post date:** [March 16, 2011, 7:27am UTC](https://www.ruby-forum.com/t/https-using-webrick-in-rails-app/204581/2 "2011-03-16T07:27:18Z")

</div>

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

I hope this helps 🙂
