【发布时间】:2012-03-05 06:45:23
【问题描述】:
Rails 3.1.3
使用 force_ssl 我一遍又一遍地得到这个重定向,它永远不会结束。我要去 https url,所以我不确定它为什么会抱怨。想法?
Started GET "/app/admin/calendar" for 69.64.227.254 at 2012-02-13 19:52:44 +0000
Processing by Admin::CalendarsController#show as HTML
User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 ORDER BY lower(first) ASC LIMIT 1
Account Load (0.6ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = 23 AND (accounts.deleted_at IS NULL) LIMIT 1
Redirected to https://www.mydomain.net/app/admin/calendar
Completed 301 Moved Permanently in 4ms
【问题讨论】:
-
您用于运行应用程序的网络服务器是什么?
-
请发布您的 nginx 配置。
-
谢谢大家,我现在似乎可以通过在 nginx 中完成所有工作并从 rails 中删除 force_ssl 来实现它。
标签: ruby-on-rails ruby-on-rails-3 ssl