Last active
August 29, 2015 14:13
-
-
Save cbeulke/0074425da973b3de62c7 to your computer and use it in GitHub Desktop.
Example: nginx.conf for reverse proxy
This file contains 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
user www-data; | |
worker_processes 1; | |
events { | |
worker_connections 128; | |
} | |
http { | |
error_log logs/error.log warn; | |
access_log logs/access.log compression; | |
upstream hello { | |
server http://127.0.0.1:81; | |
} | |
upstream goodbye { | |
server http://127.0.0.1:82; | |
} | |
server { | |
location /hello { | |
proxy_pass http://hello; | |
} | |
location /goodbye { | |
proxy_pass http://goodbye; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment