Skip to content

Instantly share code, notes, and snippets.

@gwmoura
Created November 4, 2016 17:13
Show Gist options
  • Save gwmoura/436b142243d15e4d0639861c386620c4 to your computer and use it in GitHub Desktop.
Save gwmoura/436b142243d15e4d0639861c386620c4 to your computer and use it in GitHub Desktop.
Nginx Reverse proxy
server {
listen 80;
listen [::]:80;
server_name test.com www.test.com;
location / {
proxy_pass http://app1.com:80001;
}
}
server {
listen 80;
listen [::]:80;
server_name example.com www.example.com;
location / {
proxy_pass http://app2.com:80002;
}
}
FROM nginx
COPY default.conf /etc/nginx/conf.d/default.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment