【问题标题】:Wrong protocol when using Thin and SSL使用 Thin 和 SSL 时协议错误
【发布时间】:2011-05-31 08:29:18
【问题描述】:

所以我像这样瘦了:

thin start --ssl

那我去

https://localhost:3000/

有一个虚拟控制器操作:

logger.warn root_url

输出是

http://localhost:3000/

不应该是https吗?

【问题讨论】:

    标签: ruby-on-rails protocols thin


    【解决方案1】:

    这是哪个版本的 Rails?

    我只能说,我收到“https://localhost:3090/...”,而且我使用的是 Rails 3.1.0.rc1(edge - 今天更新)。

    config/routes你有什么特别的吗?

    也许config.force_ssl 选项会改变您的情况? (我怀疑)

    【讨论】:

      猜你喜欢
      • 2016-02-01
      • 2015-11-27
      • 1970-01-01
      • 2012-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-14
      相关资源
      最近更新 更多