Created
November 16, 2019 18:13
-
-
Save theSage21/29c4cb0cedbdeb0cc5a934947ad4d4f0 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
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dchatterjee172