Re: [Hampshire] VirutaHosts with Differnet Outbound IPs

Top Page

Reply to this message
Author: Benjie Gillam
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] VirutaHosts with Differnet Outbound IPs
A potential solution would be to run two different apaches, each bound to an
individual IP address explicitly (with the Listen configuration option)?

http://httpd.apache.org/docs/2.0/bind.html

Benjie.

On 16 December 2010 13:34, Keir Whitlock <keir@???> wrote:

> Hi Guys,
>
> I have a question that I have that is troubling me, and wondered if anyone
> would be able to offer any suggestions etc. The problem maybe an easy fix or
> it might be impossible I dont know.
>
> Basically I have a server with an IP mounted on eth0 and another IP in the
> same subnet on eth0:0.
>
> I also have two IP based apache virtualhosts, one for each IP.
>
> Within each vhost, there is a proxypass to the same offsite location.
>
> What I need to happen is, if you hit vhost1 the offsite location sees it
> come from the IP on eth0; and if you hit vhost2 the offsite location sees it
> come from IP on eth0:0.
>
> At present all the traffic appears to come form the primary IP which made
> sense. And the requirement before was to go to two different offsite IPs, so
> I was going to use iptables with a SNAT rule, which worked. But now the
> requirement has changed to the same offsite IP, I'm thinking this may not be
> possible.
>
> Any advice is welcome, and thank you in advance.
>
> Regards
> Keir Whitlock
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------
>