Skip to content

Instantly share code, notes, and snippets.

@abruzzi
Created June 21, 2014 01:56
Show Gist options
  • Save abruzzi/2c2ae6f76b4a566646a9 to your computer and use it in GitHub Desktop.
Save abruzzi/2c2ae6f76b4a566646a9 to your computer and use it in GitHub Desktop.
nginx configure
upstream products_grape_server {
server localhost:9292;
}
server {
listen 8080;
server_name _;
location / {
proxy_pass http://products_grape_server;
index index.html;
}
location ~ ^/(scripts/|style/) {
root "/Users/jtqiu/develop/lwwd/products/";
}
location = /index.html {
root "/Users/twer/develop/design/todos";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment