在 Rails 4 中配置 WEBrick 以使用 SSL [英] Configuring WEBrick to use SSL in Rails 4
问题描述
I have a Rails App that I want to deploy on SharePoint 2013.
In order to achieve some means of authentication, I need the WEBrick server
to serve ssl
https
and listen to incoming https on port
https://localhost:3001
. Unfortunately, I am not very experienced with configuring the server.
I've have only found some outdated tutorials for older Rails version, that don't seem to do the job anymore.
Any tips are greatly appreciated.
I know you asked for WEBrick, and excuse me for suggesting something else, but I would really recommend you to use Thin ruby web server (faster and lighter), so you can also start SSL and meet your requirement as easy as:
$ thin start --ssl -p 3001
Just don't forget to add gem 'thin' in your Gemfile ;-)
这篇关于在 Rails 4 中配置 WEBrick 以使用 SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!