Tapas Mishra
2010-Apr-12 12:31 UTC
[Xen-users] how to access 4 application servers web based
I read a lot of blog and tutorials about name based and IP based hostings and also about mod_proxy. But I am unable to do. Here is what I am trying to do. I have a webserver on public IP.Which is running Xen on it. There are 4 Guest Operating systems installed on top of Dom0 which are Dom1,Dom2,Dom3,Dom4 These are application servers which are going to serve the requests that come from the main server.Which is Dom0. I right now have no clue. All I see is "It works" on all 4 of the hosts. On my LAN on any machine on same subnet if I do [url]http://Ip[/url] of Domu1 message comes [code] It Works [/code]. Same thing happens with remaining 3 DomU''s. [url]http://IP[/url] of DomU2 [url]http://Ip[/url] of Domu3 [url]http://Ip[/url] of Domu4 in browser from LAN gives me a message [code] It works. [/code] What do I need to do on Dom0 so that requests are forwarded to the appropriate DomUs apache2 is running on all of them including Dom0. Should I configure a DNS on Dom0 Xen machine. Since it has a public IP and remaining are DomU''s? I had setup squid and IPTABLES.For an experiment I have to do without squid or IPTABLES. -- Tapas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thomas Halinka
2010-Apr-12 14:28 UTC
Re: [Xen-users] how to access 4 application servers web based
Hi Tapas, Am Montag, den 12.04.2010, 18:01 +0530 schrieb Tapas Mishra:> I read a lot of blog and tutorials about name based and IP based > hostings and also about mod_proxy. > But I am unable to do. > Here is what I am trying to do. > I have a webserver on public IP.Which is running Xen on it. > > There are 4 Guest Operating systems installed on top of Dom0 > which are Dom1,Dom2,Dom3,Dom4 > These are application servers which are going to serve the requests > that come from the main server.Which is Dom0. > > I right now have no clue. > All I see is "It works" on all 4 of the hosts. > On my LAN on any machine on same subnet if I do > [url]http://Ip[/url] of Domu1 > message comes > [code] > It Works > [/code]. > Same thing happens with remaining 3 DomU''s. > [url]http://IP[/url] of DomU2 > [url]http://Ip[/url] of Domu3 > [url]http://Ip[/url] of Domu4 > in browser from LAN gives me a message > [code] > It works. > [/code] > What do I need to do on Dom0 so that requests are forwarded to the > appropriate DomUs apache2 is running on all of them including Dom0. > Should I configure a DNS on Dom0 Xen machine. > Since it has a public IP and remaining are DomU''s? > I had setup squid and IPTABLES.For an experiment I have to do > without squid or IPTABLES.If you dont want to use a (reverse-)proxy, a load-balancer or iptables and only have 1 Public-IP, there s no chance to accomplish this task, since your domUs have "private"-IPs which are _NOT_ routed to the internet. i would suggest to become familiar pound/nginx or lvs/iptables. cu, thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tapas Mishra
2010-Apr-12 15:37 UTC
Re: [Xen-users] how to access 4 application servers web based
> i would suggest to become familiar pound/nginx or lvs/iptables. >Ohh you it is not that I am not familiar I am not allowed to do so.> >-- Tapas +91 8971248477 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jpp@jppozzi.dyndns.org
2010-Apr-12 15:54 UTC
Re: [Xen-users] how to access 4 application servers web based
hello,> > i would suggest to become familiar pound/nginx or lvs/iptables. > > > Ohh you it is not that I am not familiar I am not allowed to do so. > > > > >If you want four webservers on a single public IP you should use a load-balancer such as "haproxy" (perhaps in a dedicated domU) which will "balance" the different sites on the four servers. Regards JPP _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Niels Dettenbach
2010-Apr-12 16:04 UTC
Re: [Xen-users] how to access 4 application servers web based
On Monday 12 April 2010 17:54:36 jpp@jppozzi.dyndns.org wrote:> If you want four webservers on a single public IP you should use a > load-balancer such as "haproxy" (perhaps in a dedicated domU) which will > "balance" the different sites on the four servers(sorry, i''ve not read the full thread) If you are not rely on a "granular" balancing and a single IP (means you need "balancing" on the same hostname - not a IP) you may use different IPs as aliases for the same webserver and DNS (more then one IN A record per hostname). Otherwise you might use several private IPs "behind" a iptables / lvm. cheers, Niels. -- --- Niels Dettenbach --- Syndicat IT&Internet http://www.syndicat.com T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE --- Kryptoinfo: PGP public key ID 651CA20D Fingerprint: 55E0 4DCD B04C 4A49 1586 88AE 54DC 4465 651C A20D https://syndicat.com/pub_key.asc --- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jpp@jppozzi.dyndns.org
2010-Apr-12 23:08 UTC
Re: [Xen-users] how to access 4 application servers web based
Le lundi 12 avril 2010 à 18:04 +0200, Niels Dettenbach a écrit :> On Monday 12 April 2010 17:54:36 jpp@jppozzi.dyndns.org wrote: > > If you want four webservers on a single public IP you should use a > > load-balancer such as "haproxy" (perhaps in a dedicated domU) which will > > "balance" the different sites on the four servers > > (sorry, i''ve not read the full thread) > > If you are not rely on a "granular" balancing and a single IP (means you need > "balancing" on the same hostname - not a IP) you may use different IPs as > aliases for the same webserver and DNS (more then one IN A record per > hostname). > > Otherwise you might use several private IPs "behind" a iptables / lvm.My text was not enough precise, I thought that the 4 servers are serving 4 different domains or at least 4 distinct sites, so haproxy could redirect work to the "right" server. So the web servers does not need any public IP, only the haproxy server needs to use the private IP. Regards JPP _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users