tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Jaynes <justinjay...@yahoo.com>
Subject RE: 1 jakarta server + multiple ip's
Date Wed, 03 Aug 2005 17:21:29 GMT
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 <Peter.Crowther@melandra.com>
wrote:

> > From: 0119030@student.uhasselt.be 
> > 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:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message