Created
August 7, 2014 18:57
-
-
Save zstumgoren/fecc7672540d757c53c1 to your computer and use it in GitHub Desktop.
nginx sample setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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