You could run both apps under the same domain but still on different hosts, 
such that:

app1 is at mydomain.com
app2 is at mydomain.com/app2

If you run tomcat behind apache httpd this is pretty simple to set up (via 
mod_proxy_ajp or mod_jk or ... )

For sub.mydomain.com you need to make a DNS change as Brian says.  
Alternatively, you could place the following line in your /etc/hosts file:

123.123.123.123  sub.mydomain.com

The only problem there is convincing everyone else in the world to do so as 
well :p

Matt


----- Original Message -----
From: "banderson" <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Friday, October 26, 2007 11:24:21 AM (GMT-0600) America/Chicago
Subject: Re: Virtual Host with Different IP Address


So this can't be done with Tomcat?  I don't have access to the DNS server,
are there any other workarounds?


Hassan Schroeder-2 wrote:
> 
> On 10/26/07, banderson <[EMAIL PROTECTED]> wrote:
> 
>> Now:
>>       server1 - mydomain.com
>>       server2 - 123.123.123.123
>> End result:
>>       server1 - mydomain.com
>>       server2 - sub.mydomain.com
> 
> This is not a Tomcat issue, this is a DNS issue.
> 
> Assign sub.mydomain.com to 123.123.123.123.
> 
> -- 
> Hassan Schroeder ------------------------ [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Virtual-Host-with-Different-IP-Address-tf4698153.html#a13430607
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to