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]

Reply via email to