Welcome! Log In Create A New Profile


Proxying module query

Edward Hibbert
January 06, 2010 07:04PM
I'm using the splendid guide to NGINX plugin modules, specifically the
upstream module part at
http://www.evanmiller.org/nginx-modules-guide.html#proxying .

I'm struggling a bit to understand how a module can indicate which server to
issue a request to - the example proxy module code presumably does this via
the config for the upstream module. If I'm just interested in sending a
query to a known host/port, what's the best way of doing this?

I wondered if I could hijack the upstream module configuration to do it,
since I'm already using that in my nginx.conf, but I've experimented with
trying to get a handle to the upstream module configuration from within my
module and I'm getting null back - so either I'm doing that wrong, or that's
not possible.

Alternatively I might need to take the code in ngx_http_upstream_init
request and simplify it a bit? Unless any of you know of a simpler starting

Thanks for any help you can offer,


nginx-devel mailing list
Subject Author Views Posted

Proxying module query

Edward Hibbert 2925 January 06, 2010 07:04PM

Re: Proxying module query

Piotr Sikora 996 January 06, 2010 07:44PM

RE: Proxying module query

Edward Hibbert 1108 January 07, 2010 12:24PM

Re: Proxying module query

Piotr Sikora 1533 January 07, 2010 12:56PM

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

Online Users

Guests: 108
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready