tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Host Aliases, Wildcards
Date Wed, 04 Aug 2004 17:56:46 GMT

You can use Apache's mod_rewrite.  You can use Tomcat's balancer webapp.
You can use other tools to do tricks in this area.  There's no Tomcat
support for wildcard virtual hosts, and with the current code base it's
not trivial to write, as you've noted.  However, as always patches and
enhancements are welcome ;)

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: Cott Lang []
>Sent: Wednesday, August 04, 2004 11:51 AM
>To: Tomcat Users List
>Subject: Re: Host Aliases, Wildcards
>On Mon, 2004-08-02 at 09:43, J.Lindberg wrote:
>> Tomcat docs on host aliases say nothing about wildcards, so I'm
>> assuming it's not implemented. Would be nice to see a change in this
>> policy. :)
>It is most definitely not implemented. I even browsed down through the
>source to review how it did the mappings. It didn't seem like a trivial
>rewrite (at least, not being familiar with the rest of the code and the
>potential ramifications).  I could really use the functionality, but
>only servlet engine I've found that has excellent virtual host support
>is Caucho's Resin.
>You can do a trick with Apache rewrite rules to match wildcard domains
>and forward them to a particular /context-path/. This works fine,
>provided you don't want to use ROOT web apps to avoid having a
>context path in the URL, which I did. :)
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

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

View raw message