Skip to content

Instantly share code, notes, and snippets.

@jerhinesmith
Created November 20, 2012 03:10
Show Gist options
  • Save jerhinesmith/4115696 to your computer and use it in GitHub Desktop.
Save jerhinesmith/4115696 to your computer and use it in GitHub Desktop.
sample nginx configuration
server {
listen 80;
server_name localhost;
rails_env production;
root /var/www/myapp/current/public;
passenger_enabled on;
index index.html index.htm;
client_max_body_size 50M;
if (-f $document_root/system/maintenance.html) {
rewrite ^(.*)$ /system/maintenance.html break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment