Welcome! Log In Create A New Profile

Advanced

RE: Setting a custom header on a proxied request

Maxime Henrion
October 14, 2015 12:14PM
Hey all,

I'm now contemplating implementing a full-blown upstream module instead of using the proxy module to achieve my goals here. Does that sound like a sensible solution?

Also, if I do go down that road, is it possible to have subrequests that use different upstreams? In order to send multiple requests for a single incoming request, I currently use a dummy location handler in the configuration, that invokes the "proxy_pass http://$arg_host" directive, and issue multiple subrequests to that location. Will I still need to do something similar with my own upstream module, or can I somehow create subrequests with different r->upstream pointers and have everything work as intended? From what I gathered so far, I don't quite see where the subrequest handling code would call ngx_http_upstream_init().

Thanks in advance,
Maxime
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Setting a custom header on a proxied request

Maxime Henrion 593 October 12, 2015 10:14AM

Re: Setting a custom header on a proxied request

Andrew Hutchings 234 October 12, 2015 12:06PM

RE: Setting a custom header on a proxied request

Maxime Henrion 278 October 12, 2015 01:06PM

Re: Setting a custom header on a proxied request

Sorin Manole 275 October 12, 2015 02:08PM

Re: Setting a custom header on a proxied request

Maxim Dounin 199 October 14, 2015 12:36PM

RE: Setting a custom header on a proxied request

Maxime Henrion 214 October 14, 2015 12:14PM

Re: Setting a custom header on a proxied request

Maxim Dounin 223 October 14, 2015 12:34PM

RE: Setting a custom header on a proxied request

Maxime Henrion 254 October 14, 2015 12:58PM

Re: Setting a custom header on a proxied request

Maxim Dounin 248 October 14, 2015 01:10PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready