Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for upstream sections. #4

Open
chakrit opened this issue Feb 4, 2014 · 2 comments
Open

Support for upstream sections. #4

chakrit opened this issue Feb 4, 2014 · 2 comments

Comments

@chakrit
Copy link

chakrit commented Feb 4, 2014

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.
@kenperkins
Copy link

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

@smilledge
Copy link

+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/"

rjz added a commit to rjz/nginx that referenced this issue Dec 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants