You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Raino Kolk <xg...@hot.ee> on 2011/04/01 22:18:02 UTC

[users@httpd] Proxing to multiple backend servers(not load balancer)

Hello,

I have to split request and forward same request to multiple backend 
servers.

For example I have CurrentSystem(CS) and NewSystem(NS)

I need something following

HTTP request
|
|
Proxy - - - - NS
|
|
CS

CS response will be returned to client. NS response must be logged to file.

Is this achievable in Apache?

Raino

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Proxing to multiple backend servers(not load balancer)

Posted by "Sharl.Jimh.Tsin" <am...@gmail.com>.
thanks to Ben Timby for your hyperlink,it helps me very much.

Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)



2011/4/3 Ben Timby <bt...@gmail.com>:
> On Sat, Apr 2, 2011 at 2:07 AM, Raino Kolk <xg...@hot.ee> wrote:
>> My problem is how to split original request and send this parallely to two
>> different system.
>
> I don't think apache is the right tool for the job. However iptables might be.
>
> http://www.bjou.de/blog/2008/05/howto-copyteeclone-network-traffic-using-iptables/
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Proxing to multiple backend servers(not load balancer)

Posted by Ben Timby <bt...@gmail.com>.
On Sat, Apr 2, 2011 at 2:07 AM, Raino Kolk <xg...@hot.ee> wrote:
> My problem is how to split original request and send this parallely to two
> different system.

I don't think apache is the right tool for the job. However iptables might be.

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

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Proxing to multiple backend servers(not load balancer)

Posted by Raino Kolk <xg...@hot.ee>.
On 01.04.2011 23:23, Jim Jagielski wrote:
> A request comes into Proxy. It then proxies that
> request to*both*  CS and NS.*Only*  the CS response
> will be sent to the client; the NS response will be
> logged... (where??, on NS or Proxy??).
Hi,

Logging is not problem. Logging can be done in NS or in separate proxy. 
Lets assume that NS contains another apache and this can proxy req and 
resp which came from frontend proxy.

My problem is how to split original request and send this parallely to 
two different system.

Raino

Re: [users@httpd] Proxing to multiple backend servers(not load balancer)

Posted by Jim Jagielski <ji...@jaguNET.com>.
On Apr 1, 2011, at 4:18 PM, Raino Kolk wrote:

> Hello,
> 
> I have to split request and forward same request to multiple backend servers.
> 
> For example I have CurrentSystem(CS) and NewSystem(NS)
> 
> I need something following
> 
> HTTP request
> |
> |
> Proxy - - - - NS
> |
> |
> CS
> 
> CS response will be returned to client. NS response must be logged to file.
> 
> Is this achievable in Apache?
> 

Let's see if I understand this:

A request comes into Proxy. It then proxies that
request to *both* CS and NS. *Only* the CS response
will be sent to the client; the NS response will be
logged... (where??, on NS or Proxy??).


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Proxing to multiple backend servers(not load balancer)

Posted by Nick Kew <ni...@webthing.com>.
On Fri, 01 Apr 2011 23:18:02 +0300
Raino Kolk <xg...@hot.ee> wrote:

> Is this achievable in Apache?

If CS returns a page with an include (e.g. SSI) generating
a request to NS, would that meet your needs?

-- 
Nick Kew

Available for work, contract or permanent.
http://www.webthing.com/~nick/cv.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org