Skip to content

Instantly share code, notes, and snippets.

@felipecruz
Last active August 29, 2015 14:03
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 felipecruz/499b8a06c07ec55bac6a to your computer and use it in GitHub Desktop.
Save felipecruz/499b8a06c07ec55bac6a to your computer and use it in GitHub Desktop.
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