Last active
August 29, 2015 14:03
-
-
Save felipecruz/499b8a06c07ec55bac6a to your computer and use it in GitHub Desktop.
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
no nginx.conf, dentro de http { } | |
upstream backs1 { | |
server 127.0.0.1:8001; | |
} | |
upstream backs2 { | |
server 127.0.0.1:8002; | |
} | |
server { | |
server_name "x.com"; | |
root /opt/apps/x; | |
location / { | |
proxy_pass_header Server; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Scheme $scheme; | |
proxy_pass http://backends1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment