http://www.domain.comはhttps://www.domain.comに転送されます が、http://domain.comはhttps://domain.comには転送されません。
nginx と unicorn を使用していますが、レールだけでこの問題を解決する方法はありますか? それとも、nginx/unicorn の設定を変更する必要がありますか?
http://www.domain.comはhttps://www.domain.comに転送されます が、http://domain.comはhttps://domain.comには転送されません。
nginx と unicorn を使用していますが、レールだけでこの問題を解決する方法はありますか? それとも、nginx/unicorn の設定を変更する必要がありますか?
https://github.com/stjhimy/rack-wwwを使用して、すべてのリクエストを www ドメインにリダイレクトできます。
config.middleware.use Rack::WWW, :www => true