Skip to content

Instantly share code, notes, and snippets.

@ptzn
Created December 29, 2010 19:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptzn/758967 to your computer and use it in GitHub Desktop.
Save ptzn/758967 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name SERVER_NAME;
root PATH_TO_PUBLIC;
passenger_enabled on;
# serve static files directly
location ~ .html {
root PATH_TO_PUBLIC;
}
location ~* ^.+\.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov)$ {
root PATH_TO_PUBLIC;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment