Skip to content

Instantly share code, notes, and snippets.

@sonianand11
Created February 16, 2016 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonianand11/57ea8cf9483178c4d8a8 to your computer and use it in GitHub Desktop.
Save sonianand11/57ea8cf9483178c4d8a8 to your computer and use it in GitHub Desktop.
worker_processes  1;
events {
    worker_connections  1024;
}
http {
    passenger_root /path/to/.rvm/gems/ruby-2.3.0/gems/passenger-5.0.24;
    passenger_ruby /path/to/.rvm/gems/ruby-2.3.0/wrappers/ruby;
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       80;
        server_name  local.development.com;
        passenger_enabled on;
        passenger_app_env development;
        root /path/to/sample_nginx_app/public;
       # location / {
       #    root   html;
       #   index  index.html index.htm;
       # }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment