Created
December 24, 2015 02:45
-
-
Save johnmarinelli/42aa83e5bff3accb4b10 to your computer and use it in GitHub Desktop.
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
events { worker_connections 1024; } | |
http { | |
#include /etc/nginx/conf.d/*.conf; | |
upstream roundrobin { | |
server localhost:8080; | |
server localhost:80; | |
} | |
server { | |
listen 80; | |
location / { | |
root /data/www; | |
} | |
location /roundrobin/ { | |
proxy_pass http://roundrobin; | |
proxy_set_header Host $http_host; | |
#proxy_redirect http://roundrobin/ $scheme://$host:$server_port/; | |
#proxy_redirect http://roundrobin:8000/ $scheme://$host:$server_port/; | |
} | |
} | |
server { | |
listen 8080; | |
root /data/server2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment