[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] XEN / firewall rules..
On Mon, Apr 30, 2012 at 08:42:40AM +0000, Martin Trezise wrote:
>
> I have set XEN up in NAT mode, with dom0 having an external IP on its eth0 port, and an IP of 192.168.1.10 on eth0:0. dom1 has an IP of 192.168.1.11
>
> I'd like to test various setups on dom1, dom2 etc. starting with alternate web servers, which leads me to the crux of my question. Is it possible to route incoming traffic on port 80 to alternate IP addresses based on the content of the traffic in question. i.e. I would like all www traffic to go to dom0, other than www.abc.com<http://www.abc.com>, which I would like to go to dom1, and www.123.com<http://www.123.com> which I'd like to be forwarded onto dom2. I don't want to run the dom1 and dom2 web servers on different ports as this could lead to difficulties with client access.
>
> Has anyone any experience of doing this?
You'd need to run a reverse proxy on the externally facing interface, this receives the http requests, looks at the http host header, and routes them to required internal server
squid in accelerator mode, or apache with mod_proxy
http://wiki.squid-cache.org/ConfigExamples/Reverse/MultipleWebservers
http://www.apachetutor.org/admin/reverseproxies
Look like they could help
Regards,
smokin
_______________________________________________
Sheffield Linux User's Group
http://sheflug.org.uk/mailman/listinfo/sheflug_sheflug.org.uk
FAQ at: http://www.sheflug.org.uk/mailfaq.html
GNU - The Choice of a Complete Generation