RE: 1 jakarta server + multiple ip's
From: Justin Jaynes [mailto:[EMAIL PROTECTED] I tried the solution you offered (below) about creating more than one service and using the address=xxx parameter in the Connectors tags. It works great. Glad to hear it. However, what do you mean in your disclaimer that it is from the documentation and is untested? Did you mean to say NOT from the documentation? I mean that I have not personally tested the solution, but have instead read the documentation and have come up with that solution. I would expect the Tomcat development team to have tested the address attribute and its consequences. And if it is untested, but it is working, are there any reasons not to use it in a production server? Is it safe? I'm the wrong person to answer that - not being on the Tomcat dev team and not running such a site myself! However, from my poking around the innards of UNIX, Windows and Tomcat over the years: - Binding a socket to a particular IP address rather than all the addresses on a machine is stable and well-tested on Windows and all the UNIX networking stacks I know; - Java's socket interface appears stable under such conditions; - I am aware of a few other sites running Tomcat for production use under such conditions - not least to get multiple SSLs onto one Tomcat instance. I have seen no traffic on this list over the past year or so that would indicate Tomcat is unstable under these conditions, but it is undoubtedly a less common configuration than running Tomcat with a single listening socket. Sorry to weasel-word the answer, Justin; I'm trying to make clear the limits of my own knowledge and where I'm relying on others for information. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1 jakarta server + multiple ip's
Peter, I tried the solution you offered (below) about creating more than one service and using the address=xxx parameter in the Connectors tags. It works great. However, what do you mean in your disclaimer that it is from the documentation and is untested? Did you mean to say NOT from the documentation? And if it is untested, but it is working, are there any reasons not to use it in a production server? Is it safe? Justin --- Peter Crowther [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. Try this. Beware, this is from the documentation and is untested! Based on my 5.0.28 installation. In your server.xml for Tomcat, set up two different Services - copy and paste the existing chunk of XML for the Service, its Engine (and the bits inside that) and its Connectors. Change the appBase of the second Host to the place you want the second virtual host to find its files. In the Connectors of each Service, add: address=ip.of.virtual.host near the port=port attribute. THis should cause the Connector to bind to that IP rather than every IP on the machine. Hope this helps. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1 jakarta server + multiple ip's
Quick question on this one: So you have an apache2 that fronts tomcat via jk2 connector, are there two instances of tomcat or just one ? If there would be two I'd see the benefits if one is busy the round robin algorithm redistributes the request to the second one. But its only one instance with two jk2 services how is that helping if the tomcat is busy handling a lot of requests ? C From: Justin Jaynes [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: RE: 1 jakarta server + multiple ip's Date: Wed, 3 Aug 2005 10:21:29 -0700 (PDT) Peter, I tried the solution you offered (below) about creating more than one service and using the address=xxx parameter in the Connectors tags. It works great. However, what do you mean in your disclaimer that it is from the documentation and is untested? Did you mean to say NOT from the documentation? And if it is untested, but it is working, are there any reasons not to use it in a production server? Is it safe? Justin --- Peter Crowther [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. Try this. Beware, this is from the documentation and is untested! Based on my 5.0.28 installation. In your server.xml for Tomcat, set up two different Services - copy and paste the existing chunk of XML for the Service, its Engine (and the bits inside that) and its Connectors. Change the appBase of the second Host to the place you want the second virtual host to find its files. In the Connectors of each Service, add: address=ip.of.virtual.host near the port=port attribute. THis should cause the Connector to bind to that IP rather than every IP on the machine. Hope this helps. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1 jakarta server + multiple ip's
My host is not very busy. The loads on the sites are minimal. I want to use two services so that each virtual host I run can have individual SSL certificates to match. SSL prevents Virtual Hosting using domain name distinguishing. It must be IP based. Justin --- MC Moisei [EMAIL PROTECTED] wrote: Quick question on this one: So you have an apache2 that fronts tomcat via jk2 connector, are there two instances of tomcat or just one ? If there would be two I'd see the benefits if one is busy the round robin algorithm redistributes the request to the second one. But its only one instance with two jk2 services how is that helping if the tomcat is busy handling a lot of requests ? C From: Justin Jaynes [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: RE: 1 jakarta server + multiple ip's Date: Wed, 3 Aug 2005 10:21:29 -0700 (PDT) Peter, I tried the solution you offered (below) about creating more than one service and using the address=xxx parameter in the Connectors tags. It works great. However, what do you mean in your disclaimer that it is from the documentation and is untested? Did you mean to say NOT from the documentation? And if it is untested, but it is working, are there any reasons not to use it in a production server? Is it safe? Justin --- Peter Crowther [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. Try this. Beware, this is from the documentation and is untested! Based on my 5.0.28 installation. In your server.xml for Tomcat, set up two different Services - copy and paste the existing chunk of XML for the Service, its Engine (and the bits inside that) and its Connectors. Change the appBase of the second Host to the place you want the second virtual host to find its files. In the Connectors of each Service, add: address=ip.of.virtual.host near the port=port attribute. THis should cause the Connector to bind to that IP rather than every IP on the machine. Hope this helps. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
1 jakarta server + multiple ip's
Hello, I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. situation: one networkdevice (eth0) has 2 ip's. I would like to setup virtual hosts based on the ip's. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. I suppose Tomcat requests the dns-name that corresponds to that id. So, I'm wondering if this setup filters on ip? thanks, Michel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1 jakarta server + multiple ip's
Virtual hosting is done based on the host: header send by browser to the server, as part of the request, based on HTTP/1.1 protocol. Le Mardi 2 Août 2005 13:36, [EMAIL PROTECTED] a écrit : Hello, I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. situation: one networkdevice (eth0) has 2 ip's. I would like to setup virtual hosts based on the ip's. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. I suppose Tomcat requests the dns-name that corresponds to that id. So, I'm wondering if this setup filters on ip? thanks, Michel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1 jakarta server + multiple ip's
From: [EMAIL PROTECTED] I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. Try this. Beware, this is from the documentation and is untested! Based on my 5.0.28 installation. In your server.xml for Tomcat, set up two different Services - copy and paste the existing chunk of XML for the Service, its Engine (and the bits inside that) and its Connectors. Change the appBase of the second Host to the place you want the second virtual host to find its files. In the Connectors of each Service, add: address=ip.of.virtual.host near the port=port attribute. THis should cause the Connector to bind to that IP rather than every IP on the machine. Hope this helps. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]