Bug 7676

Summary: Allow name property to use match experssions in <host> tag, or <alias> tag
Product: Tomcat 4 Reporter: Eugene Engelgau <gene_engelgau>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement CC: gene_engelgau
Priority: P3    
Version: 4.0.3 Final   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Eugene Engelgau 2002-04-02 01:15:28 UTC
It would be very usefull to allow the host block to be selectable by a name 
proerty using regular experssions.  That way an entire class of host names can 
be mapped to a virtual server.  For instance in my example below, this Host 
section is selected if we have all of these:


See below for config.  


      <Host name="*.m1.mydomain.com" debug="2" appBase="d:/http/my_content" 
        <!-- Context -->
		<Context path="" docBase="d:/http/my_contentden"   
             reloadable="true" crossContext="true" debug="2"/>	


We host as many as 500 virtual sites on a server and need this so we can map 
all sites to the same content area, and add them without changing the 
server.properties file.  The application looks at the host request header value 
to make the final determination on how to treat the content.

Gene Engelgau
Comment 1 Eric Kobrin 2007-05-11 05:23:23 UTC
This would still be a useful feature in the latest tomcat.
Comment 2 Mark Thomas 2010-02-04 12:26:39 UTC

*** This bug has been marked as a duplicate of bug 18500 ***