小编Hun*_*ard的帖子

SSL与Rails 3.1:config.force_ssl = true无法在开发模式下工作

我正在使用sqlite在Ubuntu上以开发模式运行rails 3.1.rails服务器在端口3000上运行,我将nginx设置为proxy_pass端口80和443到端口3000.当我放入config.force_ssl = true我的Application.rb并重新启动rails服务器时,我收到如下错误:

    Secure Connection Failed
    An error occurred during a connection to localhost:3000.

    SSL received a record that exceeded the maximum permissible length.

    (Error code: ssl_error_rx_record_too_long)

    The page you are trying to view can not be shown because the authenticity of the received data could not be verified.
    Please contact the web site owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.
Run Code Online (Sandbox Code Playgroud)

当我将其更改回config.force_ssl …

ssl nginx ruby-on-rails-3.1

8
推荐指数
1
解决办法
4521
查看次数

标签 统计

nginx ×1

ruby-on-rails-3.1 ×1

ssl ×1