Skip to content

URI support in proxy_pass #98

Closed
Closed
@jlesage

Description

@jlesage

The nginx proxy_pass directive supports an URI:

proxy_pass http://localhost:8000/uri/;

See http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass

It would be useful to support this. This could be especially useful for custom locations, where one would want to forward without the location part. For example, with:

location /sub/ {
  proxy_pass http://192.168.1.1:8080/;
}

The following forwarding would occur:
http://example.com/sub/index.html -> http://192.168.1.1:8080/index.html

Or with:

location /sub/ {
  proxy_pass http://192.168.1.1:8080/other;
}

We would have:
http://example.com/sub/index.html -> http://192.168.1.1:8080/other/index.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions