开发者

Rack ssl not working with Thin

开发者 https://www.devze.com 2023-03-29 14:44 出处:网络
I installed rack ssl for Rails 3.07 per these instructions: http://www.simonecarletti.com/blog/2011/05/configuring-rails-3-https-ssl/

I installed rack ssl for Rails 3.07 per these instructions: http://www.simonecarletti.com/blog/2011/05/configuring-rails-3-https-ssl/

It is not working. T开发者_如何学运维he first https request (for the login page) is made and the page is served securely, but when you login it redirects to a non-secure http URL.

I am running Thin server. Does it work for Thin? What about Webrick?

Any ideas? Thanks.


For Thin, you can pass your SSL information in using the following options:

$ thin --help

SSL options:
    --ssl                        Enables SSL
    --ssl-key-file PATH          Path to private key
    --ssl-cert-file PATH         Path to certificate
    --ssl-verify                 Enables SSL certificate verification

If you would like to configure Webrick to use SSL, this article from this question seems to work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号