Skip to content

Instantly share code, notes, and snippets.

@mde
Created April 21, 2013 19:07
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 mde/5430658 to your computer and use it in GitHub Desktop.
Save mde/5430658 to your computer and use it in GitHub Desktop.
upstream zerb_blarg {
server 127.0.0.1:4000;
}
server {
listen 80;
server_name www.zerb-blarg.org zerb-blarg.org;
access_log /var/log/nginx/zerb_blarg.access.log;
location / {
proxy_pass http://zerb_blarg;
}
# Static files location
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {
root /path/to/zerb-blarg/public;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment