Created
July 18, 2018 19:25
-
-
Save hgkmail/65dcd069be6186b744eff83e6bbcec55 to your computer and use it in GitHub Desktop.
nginx upstream example
This file contains 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 backend { | |
server backend1.example.com weight=5; | |
server backend2.example.com:8080; | |
server unix:/tmp/backend3; | |
server backup1.example.com:8080 backup; | |
server backup2.example.com:8080 backup; | |
} | |
server { | |
location / { | |
proxy_pass http://backend; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment