Skip to content

Instantly share code, notes, and snippets.

@Rafailong
Created November 28, 2013 21:48
Show Gist options
  • Save Rafailong/7698565 to your computer and use it in GitHub Desktop.
Save Rafailong/7698565 to your computer and use it in GitHub Desktop.
Nginx Config: Front-End Reverse Proxy to Another Port
# NGINX configuration
# System configuration ##################
worker_processes 3;
events {
worker_connections 1024;
}
user nobody;
# Web configuration #####################
http {
server {
listen 80 default;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:5010/;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment