Search code examples
ruby-on-rails-3web-serviceswebrick

Configuring Webrick in rails 3.0 to serve both http and https (SSL)


I am trying to use ssl_requiremnt plugin for rails 3.0 in my app. A few links in my app need to be secure with SSL and the rest need to be served by http only. I configured webrick according to this post: http://www.nearinfinity.com/blogs/chris_rohr/configuring_webrick_to_use_ssl.html

Now I want webrick to serve both http and https. It seems it was easy with rails 2.3.

Could someone please help me?


Solution

  • I solved the issue by switching Nginx but could not do it using Webrick. I guess Webrick does not support two instances of a server simultaneously and to switch you need to stop the current server and restart the server which has got https:// settings.