You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Roman Fail <rf...@posportal.com> on 2003/05/09 00:24:30 UTC

Separate webapp/welcome file for each IP address?

I have a standalone, single instance Tomcat 4.1.24 installation on a server with multiple IP addresses.  A single domain name maps to each IP.
 
Is it possible to have Tomcat direct to a webapp other than ROOT based on the destination IP address?  In other words, www.firstdomain.com uses the ROOT webapp welcome file, but www.seconddomain.com uses the welcome file of another webapp?  To start with, I obviously(?) need to have separate Connectors for each IP address.
 
I've got a hack that I think would work, but it would be great if I could figure out how to do this in the server.xml Connector configuration.  The hack is to make the welcome file for the ROOT webapp a JSP, which examines the HTTP header and redirects to the appropriate webapp based on the 'HOST' header value.
 
Thanks for any insights,
 
Roman Fail
POS Portal, Inc.
916-563-1943