duplicate the client's requests to another server

Unai Rodriguez unai at leanservers.com
Thu Dec 22 06:52:10 UTC 2011


Jeff,

I can't think of a (simple) way of doing this through NGINX.

It seems to me that the simplest might be to handle this on iptables (are
you using Linux?) directly by setting up something similar to what's
covered here:

http://www.bjou.de/blog/2008/05/howto-copyteeclone-network-traffic-using-iptables/

so your destination would be some sort of an alias that actually represents
2 destinations.

Would you be able to provide more context about your environment and why
you are thinking of implementing that?

-- 
Unai Rodriguez
CTO & Cofounder
LeanWired LLP
Singapore 168977
www.leanservers.com
unai at leanservers.com


On Thu, Dec 22, 2011 at 12:27 PM, Jeff Pang <jeffrpang at gmail.com> wrote:

> Hello,
>
> When nginx pass the client's request to an original server, I want it
> always duplicate the request to another webserver.
>
> For example, the request is following: client -> nginx -> original-server
> What I want is:
>
> client -> nginx -> original-server
>                     |-> another webserver
>
> The request should always be duplicated, rather than the round robin.
>
> How can I do that?
>
> Thanks.
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20111222/f6ab175a/attachment-0001.html>


More information about the nginx mailing list