简体   繁体   English

Rails 3.1 Passenger / Apache / force_ssl收到404错误

[英]Rails 3.1 Passenger/Apache/force_ssl getting 404 error

I'm trying to force my application into using SSL. 我试图强制我的应用程序使用SSL。 I've inserted "force_ssl" into my application controller. 我已将“ force_ssl”插入到我的应用程序控制器中。 However when I try to access the application I'm getting 404s for every page. 但是,当我尝试访问该应用程序时,每个页面都显示404。 The application is being redirected to https, though. 该应用程序将被重定向到https。

I'm using passenger and apache. 我正在用乘客和阿帕奇。

Is there something else I need to do? 还有什么我需要做的吗? Any hints/tips would be greatly appreciated. 任何提示/技巧将不胜感激。

Thanks 谢谢

Try putting 试穿

config.force_ssl = true

into application.rb . 进入application.rb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM