What is the best way to upgrade a rails application to support SSL SSL?

With the upcoming SSL migration to Facebook on October 1, all applications will need to support connections via HTTPS, and for this you will need an SSL certificate.

  • Are there any problems with how a person should fix the application?
  • Do you have to use Apache and Passenger, xginx or another server?
  • Are there any free trusted certificates?
+5
source share
1 answer

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 . :

# config/application.rb
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 .

+4

All Articles