*******************************  NOTICE  *********************************
This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is privileged,
confidential, and exempt from disclosure under applicable law.  If the
reader of this message is not the intended recipient or the employee or
agent responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or copying
of this communication is strictly prohibited.  If you have received this
communication in error, please notify us immediately by reply or by
telephone (call us collect at 512-343-9100) and immediately delete this
message and all its attachments.
--- Begin Message ---
The OP doesn't mention if "dev" and "demo" resolve to different IPs, but if 
they do, then this can be resolved in multiple ways.  The easiest is probably 
multiple instances of Tomcat.

-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, April 01, 2010 12:24 PM
To: Tomcat Users List
Subject: Re: RemoteHostValve for infinite domains?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dean,

On 4/1/2010 10:37 AM, Dean Hiller wrote:
> So, xxx.dev.premonitionx.com will go be routed to
> 
> <Engine defaultHost="dev.premonitionx.com"

Yes. But, requests to xxx.demo.premonitionx.com will also go to that
<Host> as well.

I thin the only way to get around writing many <Alias> entries in
server.xml is to either use something like Apache httpd + mod_jk to
perform routing to the correct backend Tomcat server, or to modify the
Tomcat code that does <Host> picking and use String.endsWith() instead
of String.equals() to perform the matching.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku01r4ACgkQ9CaO5/Lv0PAMyACfVCfVxrnP8PE4uV6N1vN3Ixkm
nLYAn0IXKxF7Pwxw/GbFbcaVOB63dBHG
=77d2
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to