nginx icon indicating copy to clipboard operation
nginx copied to clipboard

Support for `upstream` sections.

Open chakrit opened this issue 11 years ago • 2 comments

Refer to the docs: http://nginx.org/en/docs/http/ngx_http_upstream_module.html

Use cases:

  • When using Nginx to resolve virtual hosts to different ports/servers/upstreams.
  • When using Nginx as a reverse-proxy to handle caching and other HTTP shenanigans.

chakrit avatar Feb 04 '14 18:02 chakrit

If I'm reading this correctly, that means that currently I can't setup a reverse proxy to an alternate backend service?

kenperkins avatar Jun 17 '14 15:06 kenperkins

+1

If you just need to setup a reverse proxy the following should work;

nginx_sites:
       - server:
          file_name: example.com
          listen: 80
          server_name: example.com
          location1: 
            name: /
            proxy_pass: "http://127.0.0.1:8080/"

smilledge avatar Oct 26 '14 03:10 smilledge