Opened 6 years ago

Closed 6 years ago

#601 closed enhancement (wontfix)

Proxy_pass esque directive to all endpoints in upstream block

Reported by: Ned Rockson Owned by:
Priority: minor Milestone:
Component: nginx-module Version: 1.7.x
Keywords: proxy_pass Cc:
uname -a:
nginx -V: N/A

Description

There should exist a proxy_pass like directive to route to all endpoints defined in an upstream block. This allows for a configuration to define a specific endpoint (or multiple) that need to touch all reverse proxied endpoints (e.g. to force some state clearing) without having to write very specific application code.

I'd imagine the new command might be

proxy_pass_all <upstream server block name> <serial/parallel>

which would proxy to all groups in the upstream server block either serially or in parallel. As I am not very well versed in nginx I am not sure what should happen if a server is down in the block, returns a non-200, etc. This is likely why this hasn't been implemented.

Change History (1)

comment:1 by Maxim Dounin, 6 years ago

Resolution: wontfix
Status: newclosed

There are no plans to implement this. If needed in your particular use case, you may try do something like this using, e.g., subrequests.

Note: See TracTickets for help on using tickets.