tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7676] New: - Allow name property to use match experssions in <host> tag, or <alias> tag
Date Tue, 02 Apr 2002 01:15:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7676>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7676

Allow name property to use match experssions in <host> tag, or <alias> tag

           Summary: Allow name property to use match experssions in <host>
                    tag, or <alias> tag
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: gene_engelgau@hotmail.com
                CC: gene_engelgau@hotmail.com


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:

m1.mydomain.com
site1.m1.mydomain.com
site2.m1.mydomain.com
m2.mydomain.com
site1.m2.mydomain.com
site2.m2.mydomain.com

See below for config.  

===================================

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

========================

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

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message