I’m looking to do a partial SSL site in rails. I basically want to protect the user actions behind SSL, but nothing else.
Anyone know of a plugin or gem that makes this simple and efficient?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is typically done with the SSL Requirement plugin. It sets up
before_filters allowing you to specify which actions require SSL and which optionally allow it, and which specifically do not allow it.Outside of that, it’s just a matter of setting up 2 VHosts in your Apache (or whichever server you use) configuration, one for the SSL site and one for the non-SSL site.