Skip to content

Instantly share code, notes, and snippets.

@feesta
Created October 2, 2012 16:43
Show Gist options
  • Save feesta/3820915 to your computer and use it in GitHub Desktop.
Save feesta/3820915 to your computer and use it in GitHub Desktop.
Nginx config to forward traffic to a port.
user www-data;
worker_processes 5;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;
}
http {
server {
listen 80;
location /nodejs {
proxy_pass http://127.0.0.1:3000;
}
location / {
root /var/www/;
index index.html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment