I have a question about nginx configured as a load-balancer. Usually,
when HTTP requests are balanced to a back-end server, the HTTP reply is
sent back to the client through the load-balancer. Is this also the case
for nginx, or is it also possible to configure nginx that the backend
server will directly respond to the client? I wonder…
I don’t think that is technically possible because of the way that whole
http thing works. Browser expects to get reply’s from the server they
requested information from. They don’t open ports and wait for servers
to
connect to them. Also, web server doesn’t connect to anyone, they just
open
ports and wait until some browser ask some information. So, what you
asking
is not technically possible.
On Sat, Jul 23, 2011 at 11:35:05AM -0400, andrejvanderzee wrote:
I have a question about nginx configured as a load-balancer. Usually,
when HTTP requests are balanced to a back-end server, the HTTP reply is
sent back to the client through the load-balancer. Is this also the case
for nginx,
Yes.
or is it also possible to configure nginx that the backend
server will directly respond to the client? I wonder…
what you are looking for is a LB with DSR mode (direct server return)
this is done by manipulating the mac add header … you could hack
something up yourself or purchase an appliance from known vendors that
support dsr mode (brocade/a10 being 2 of many…)