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 3337 January 06, 2010 07:04PM

Re: Proxying module query

Piotr Sikora 1177 January 06, 2010 07:44PM

RE: Proxying module query

Edward Hibbert 1300 January 07, 2010 12:24PM

Re: Proxying module query

Piotr Sikora 1789 January 07, 2010 12:56PM



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

Online Users

Guests: 207
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready