Skip to content

Instantly share code, notes, and snippets.

@johnmarinelli
Created December 24, 2015 02:45
Show Gist options
  • Save johnmarinelli/42aa83e5bff3accb4b10 to your computer and use it in GitHub Desktop.
Save johnmarinelli/42aa83e5bff3accb4b10 to your computer and use it in GitHub Desktop.
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