Are there any problems in how a person should fix the application?
Not really. What for? Because it all depends on which version of the rails you are using.
Rails 2.x / , :
- ModRewrite - - HTTP HTTPS. , (python, java .net).
- ssl_requirement gem - https, HTTP (https://github.com/retr0h/ssl_requirement). , , , ssl_requirement.
- (-ssl, rack-ssl-enforcer gem) - , , . ( ..) , , , 2.
Rails 3.1 . :
module MyApp
class Application < Rails::Application
config.force_ssl = true
end
end
Apache Passenger?
. , NGinx Passenger. , , , , -, , SSL .
, - . SSL (http https). Apache NGinx.
"" Apache/NGinx . SSL (.. .). , , . , , http https .
?
. . , , , , , . . , SSL 100 . , .
. (, *.myapp.com). , .
, HTTPS dev. . , POW NGinx, Apache Passenger . Apache . , http. , Apache .