Setting up SSL on Nginx, Passenger, Sinatra

Posted by 12preschph on Server Fault See other posts from Server Fault or by 12preschph
Published on 2014-06-08T20:07:01Z Indexed on 2014/06/08 21:27 UTC
Read the original article Hit count: 226

Filed under:
|
|
|
|

I have a Sinatra app that runs both on locally and on Heroku.

When visiting my site over HTTPS across Heroku, it will indeed work as Heroku provides this by default.

How can I set up SSL to work on my localhost machine?

I will enable my Sinatra app to only allow secure connections so I need to test this both in development and production.

Currently, I am running the following locally:

SERVER= nginx/1.6.0 + Phusion Passenger 4.0.42

Also, where is my nginx folder? I don't have it installed in the normal location (Ubuntu) so this must come custom with Passenger?

© Server Fault or respective owner

Related posts about nginx

Related posts about ssl