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

我只是一个虾纸丫 提交于 2019-12-07 08:39:13

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8062030/configuring-webrick-in-rails-3-0-to-serve-both-http-and-https-ssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!