×

Welcome to TagMyCode

Please login or create account to add a snippet.
2
0
 
1
Language: Bash
Posted by: Paul Allies Allies
Added: Aug 31, 2012 8:05 AM
Views: 37
Tags: nginx nodejs
Configure Nginx for nodejs
Edit the nginx.conf file with the following
  1. worker_processes  1;
  2.  
  3. events {
  4.     worker_connections  1024;
  5. }
  6. http {
  7.         server {
  8.                 listen 80;
  9.                 server_name localhost;
  10.                 location / {
  11.                        #This is the location of the nodejs app
  12.                         proxy_pass http://localhost:8000;
  13.                 }
  14.         }
  15. }
  16.