开发者

Wrong protocol when using Thin and SSL

So I'm running thin like this:

thin start --ssl

then I'm going to

https://localhost:3000/

There is a dummy controller action that does :

logger.warn root_url

开发者_开发知识库and the output is

http://localhost:3000/

Shouldn't it be https instead?


Which version of Rails is this?

I can only say, than in my case I receive "https://localhost:3090/...", and I am using Rails 3.1.0.rc1 (edge - updated today).

Do you have anything special in config/routes?

Maybe the option config.force_ssl will change something in your case? (I doubt)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜