Skip to content

Instantly share code, notes, and snippets.

@tleen
Created February 8, 2013 21:48
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 tleen/4742207 to your computer and use it in GitHub Desktop.
Save tleen/4742207 to your computer and use it in GitHub Desktop.
sample nginx to node
server{
listen *:8080;
server_name myproject.com;
location / {
root /usr/share/nginx/myproject/static;
try_files $uri @app;
}
location @app{
proxy_pass http://localhost:10080;
proxy_set_header Host $http_host;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment