{"author_name":"willnet","blog_title":"\u304a\u3082\u3057\u308dweb\u30b5\u30fc\u30d3\u30b9\u958b\u767a\u65e5\u8a18","published":"2011-05-24 13:53:16","url":"https://blog.willnet.in/entry/20110524/1306212796","type":"rich","provider_url":"https://hatena.blog","width":"100%","title":"Rails3 \u3067 HTTPS \u3092\u4f7f\u3046\u306b\u306f","height":"190","author_url":"https://blog.hatena.ne.jp/willnet/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.willnet.in%2Fentry%2F20110524%2F1306212796\" title=\"Rails3 \u3067 HTTPS \u3092\u4f7f\u3046\u306b\u306f - \u304a\u3082\u3057\u308dweb\u30b5\u30fc\u30d3\u30b9\u958b\u767a\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["rails"],"provider_name":"Hatena Blog","blog_url":"https://blog.willnet.in/","image_url":null,"version":"1.0","description":"Configuring Rails 3 to use HTTPS and SSL \u2013 Simone Carletti's Blog\u306e\u610f\u8a33\u3002 Rails 3.1\u4ee5\u964d Rails3.1\u4ee5\u964d\u304b\u3089\u306f\u3001\u3053\u306e\u30b3\u30df\u30c3\u30c8\u306b\u3088\u3063\u3066HTTP\u304b\u3089HTTPS\u3078\u9077\u79fb\u3055\u305b\u308b\u306e\u304c\u3061\u3087\u3046\u7c21\u5358\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3059\u308b\u3060\u3051\u3067OK\u3002 # config/application.rb module MyApp class Application < Rails::Application config.force_ssl = true end end \u3053\u306e\u30b3\u30fc\u30c9\u306e\u88cf\u5074\u3067\u306f\u3001Rails\u306frack-ssl\u3092\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3068\u3057\u3066\u8ffd\u2026"}