Skip to content

Instantly share code, notes, and snippets.

@zstumgoren
Created August 7, 2014 18:57
Show Gist options
  • Save zstumgoren/fecc7672540d757c53c1 to your computer and use it in GitHub Desktop.
Save zstumgoren/fecc7672540d757c53c1 to your computer and use it in GitHub Desktop.
nginx sample setup
server {
listen 80;
server_name watusi.inside.ap.org;
root /mnt/share_STG/rack_apps/watusi/current/public;
passenger_ruby /home/interact/.rvm/wrappers/ruby-1.9.3-p448/ruby;
passenger_enabled on;
rails_env production;
access_log /var/log/nginx/watsui.access.log;
error_log /var/log/nginx/watusi.error.log;
location ~ ^/assets/ {
passenger_enabled on;
expires max;
}
location ~ ^/(assets|images|flash)/ {
passenger_enabled on;
expires max;
}
location = /nginx_status {
stub_status on;
access_log off;
allow all;
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment