机架ssl无法使用Thin [英] Rack ssl not working with Thin

查看:129
本文介绍了机架ssl无法使用Thin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照以下说明为Rails 3.07安装了机架ssl: 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/

不是加工。发出第一个https请求(用于登录页面)并安全地提供页面,但是当您登录时,它会重定向到不安全的http URL。

It is not working. The 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.

我正在运行瘦服务器。它适用于Thin吗?那么Webrick呢?

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

任何想法?谢谢。

推荐答案

对于Thin,您可以使用以下选项传递您的SSL信息:

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

如果您想将Webrick配置为使用SSL,这篇文章>这个问题似乎有效。

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

这篇关于机架ssl无法使用Thin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆