Ssl stand not working with thin

I installed the ssl rack for Rails 3.07 according to these instructions: http://www.simonecarletti.com/blog/2011/05/configuring-rails-3-https-ssl/

He does not work. The first https request (for the login page) is made, and the page is loaded securely, but when you enter it, it is redirected to an insecure http address.

I am running Thin server. Does it work for thin? How about webrick?

Any ideas? Thanks.

+4
source share
1 answer

For Thin, you can transfer your SSL information using the following parameters:

$ thin --help SSL options: --ssl Enables SSL --ssl-key-file PATH Path to private key --ssl-cert-file PATH Path to certificate --ssl-verify Enables SSL certificate verification 

If you want to configure Webrick to use SSL, this article from this Question works.

+4
source

All Articles