我正在使用Thin web服务器来提供我的Rails应用程序。
- 使用
thin start
命令启动服务器会提供http
请求。 - 使用
thin start --ssl
命令启动服务器会提供https
请求。
是否有一种方式可以让thin
同时提供http
和https
请求?
我之所以问这个问题,是因为当我在控制器中使用redirect_to some_path
时,它们会重定向到http
。由于thin
正在提供https
请求,所以什么也不会被渲染。
注意:我正在Rails 3.0.7
中使用Rack::SSL
。
thin
实例。 - Graham Swan