tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51269] New: Enhancement: Allow Alias to support wildcards
Date Thu, 26 May 2011 12:59:43 GMT

             Bug #: 51269
           Summary: Enhancement: Allow Alias to support wildcards
           Product: Tomcat 5
           Version: Unknown
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
    Classification: Unclassified

I would like my tomcat instance to be able to respond to multiple DNS
subdomains without having to explicitly specify those subdomains.  For example
I would like to be able to create an alias that looks like

         <Host name="myapp" >

With this configuration, the server should respond properly to

This seems like it could be done easily by changing
org.apache.catalina.connector.MapperListener:registerEngine so that instead of 
    if (aliases[i].equalsIgnoreCase(defaultHost)){
        isRegisteredWithAlias = true;
we instead did something like
    if(Pattern.matches(alias[i].toLowerCase().replaceAll("\\*", ".*?"),
defaultHost.toLowerCase())) {
        isRegisteredWithAlias = true;

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message