Skip to content

Instantly share code, notes, and snippets.

@mvrilo
Created June 13, 2010 19:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mvrilo/436932 to your computer and use it in GitHub Desktop.
Save mvrilo/436932 to your computer and use it in GitHub Desktop.
# node.js app under nginx
upstream node {
server 127.0.0.1:8001;
}
server {
listen 80;
server_name node;
access_log /var/log/nginx/node.access.log;
location / {
root /home/user/nodejs;
fastcgi_pass 127.0.0.1:8001;
proxy_pass http://node/;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/user/nodejs/$fastcgi_script_name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment