Created
November 28, 2013 21:48
-
-
Save Rafailong/7698565 to your computer and use it in GitHub Desktop.
Nginx Config: Front-End Reverse Proxy to Another Port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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