Skip to content

Instantly share code, notes, and snippets.

@cbeulke
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbeulke/0074425da973b3de62c7 to your computer and use it in GitHub Desktop.
Save cbeulke/0074425da973b3de62c7 to your computer and use it in GitHub Desktop.
Example: nginx.conf for reverse proxy
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