On 20/10/2010 07:51, Thomas Hauk wrote:
> I'm setting up a Mac OS X Server (10.5) machine, and that will include 
> setting up Tomcat. 

The machine will be the host for at least two different domain names --
let's say myapp.example.com

and myapp.anotherexample.com -- each of which will need to be hooked up
to a different servlet.

In other words, HTTP requests to http://myapp.example.com/ should get
routed to the

myappexample servlet, and HTTP requests to
http://myapp.anotherexample.com/ should get routed

to the myappanotherexample servlet.
> 
> How do I do this?

Presumably by 'different servlet' you mean different 'web application
which contains one or more servlets'?

You'll need to configure DNS to point name records at the public IP
address of the server, and once you've done that configure Tomcat to
support Virtual Hosts.

Use the special name 'ROOT' for each application and it will serve
resource on the default path.

> I've looked for a guide or tutorial but I haven't found anything. If you 
> aren't sure how Mac OS X Server 10.5 works, that's okay; I'm willing to 
> settle for a more general tutorial about setting up just the Tomcat side of 
> things! 

The tomcat.apache.org site has docs on how to do the Tomcat bit.
I don't think there's anything special you'll need to do to OSX.


p

> T
> 
> --
> "A good programmer is someone who always looks both ways before crossing a 
> one-way street."
>   -- Doug Linder
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

Attachment: 0x62590808.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to