Skip to content

Instantly share code, notes, and snippets.

@theSage21
Created November 16, 2019 18: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 theSage21/29c4cb0cedbdeb0cc5a934947ad4d4f0 to your computer and use it in GitHub Desktop.
Save theSage21/29c4cb0cedbdeb0cc5a934947ad4d4f0 to your computer and use it in GitHub Desktop.
upstream api_servers {
localhost:8080;
localhost:8081;
}
server {
server_name www.deb.com;
root /www;
location / {
index index.html;
}
location /api {
rewrite ^/api(.*)$ $1;
proxy_pass http://api_servers;
}
}
@theSage21
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment