[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] XEN / firewall rules..
On Mon, 2012-04-30 at 08:42 +0000, Martin Trezise wrote:
> Hi guys, hope you can help...
>
> Let's start by saying I'm coming from the dark side (Windows), and
> trying to get up to speed with Linux. I'm dabbling with XEN on a
> 1and1 server running Debian 6.
>
> 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?
Hi Martin,
You can do this with the Apache web server. There are a number of
different features which might do exactly what you want.
Firstly, Apache can be used to host lots of different sites at once. You
can set up any number of VirtualHosts - these are often found
in /etc/apache2/sites-available/. Each VirtualHost has its own
configuration.
You can use the rewrite module to rewrite the URL to redirect the client
to a different site.
You can use the proxy module to reverse proxy to other servers.
That doesn't really tell you what to do, but I think it gives you a
pointer to where you want to be looking.
very best regards,
Seb James
--
William Matthew Limited
Office: 0114 2132887
Mobile: 07900 958964
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
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