Skip to content

Instantly share code, notes, and snippets.

@nisanthchunduru
Last active July 7, 2017 10:30
Show Gist options
  • Save nisanthchunduru/9672fec61d8249f102c2ec26d8362eb4 to your computer and use it in GitHub Desktop.
Save nisanthchunduru/9672fec61d8249f102c2ec26d8362eb4 to your computer and use it in GitHub Desktop.
Example nginx configuration file for phusion passenger open source
server {
listen 443;
root /home/rails/apps/magicbell_site/current/public;
server_name magicbell.io;
# Use certificates we purchased from https://www.ssl2buy.com
ssl on;
ssl_certificate /etc/nginx/certs/magicbell.io/magicbell.io.crt;
ssl_certificate_key /etc/nginx/certs/magicbell.io/magicbell.io.key;
passenger_enabled on;
passenger_sticky_sessions on;
passenger_ruby /usr/local/rvm/wrappers/ruby-2.4.1/ruby;
index index.htm index.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment