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@leanservers.com
On Thu, Dec 22, 2011 at 12:27 PM, Jeff Pang <jeffrpang@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx