Welcome! Log In Create A New Profile

Advanced

Re: duplicate the client's requests to another server

December 22, 2011 01:54AM
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
Subject Author Posted

duplicate the client's requests to another server

Jeff Pang December 21, 2011 11:28PM

Re: duplicate the client's requests to another server

unai December 22, 2011 01:54AM

Re: duplicate the client's requests to another server

Jeff Pang December 22, 2011 03:06AM

Re: duplicate the client's requests to another server

unai December 22, 2011 03:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready