Welcome! Log In Create A New Profile

Advanced

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
point?

Thanks for any help you can offer,

Edward.


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Proxying module query

Edward Hibbert 2521 January 06, 2010 07:04PM

Re: Proxying module query

Piotr Sikora 818 January 06, 2010 07:44PM

RE: Proxying module query

Edward Hibbert 942 January 07, 2010 12:24PM

Re: Proxying module query

Piotr Sikora 1288 January 07, 2010 12:56PM



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

Online Users

Guests: 85
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