Quick and Dirty SSL for a Rails app


To improve security for things like SquirrelMail and RoundCubeMail, I can just place the mail app directory into the Apache SSL dir, add some stuff to /etc/httpd/conf.d/ssl.conf and it just works when I point the browser using "https: . . .". Is there a quick method like that for Rails apps? ie not having to make any changes to the Rails app itself? I can't get it to work (I am using Apache and Passenger on Fedora 14 x86_64).



Well provided you don’t have any code in your application that won’t work with https, you should be good to go.

Just make sure the domain you are using to access your Rails application is SSL protected (via Apache, load balancer, or other means) and then simply access it using https.

See here: Configuring Rails 3 to use HTTPS and SSL — Simone Carletti