Skip to content

Instantly share code, notes, and snippets.

@almaron
Created June 3, 2013 13:14
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 almaron/5698067 to your computer and use it in GitHub Desktop.
Save almaron/5698067 to your computer and use it in GitHub Desktop.
events {
worker_connections 4096; ## Default: 1024
}
http{
server {
listen 80;
server_name fotorich.ru www.fotorich.ru;
passenger_enabled on;
root /home/rails/www/photomoney/current/public;
charset utf-8;
# static assets expires
location ~* \.(jpg|jpeg|gif|giff|png|flv|css|swf)$ {
expires max;
}
location ~* ^/assets/* {
expires max;
}
rails_env production;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment