Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes Tomcat config issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat config issue" Watch "Tomcat config issue" New topic

Tomcat config issue

Jeremy Botha
Ranch Hand

Joined: Feb 16, 2005
Posts: 125
I'm in the process of speccing up a content management system for a private client. The client wants to be able to offer small business website hosting, and has approached me to write the CMS etc. No issues there.

What I want to do is write one web application, with the ability to dynamically add sites (within reason, I know one has to set up virtual hosts and the various DNS entries as well, but I want to try to automate the process as far as possible.)

What currently has me stumped is the following.

I want to deploy the CMS and backing system as

Now say my client signs another client, I want to be able to serve up's website and CMS data from the main application servlet on

I know that tomcat has support for Aliases inside the Host element in server.xml - but I'm hoping that someone here knows whether I can register an alias, say, which Tomcat will automatically be able to redirect to say<siteID> or something to that effect.

What I've seen so far is that I can run and off the same webapp via Alias, but I can't find a way to encode the site id of in the alias itself.

In effect, I want the site to transparently use to serve its data.

Is this possible?

Mods - sorry if this is the wrong section, I thought that 'Servlets' would give me the best chance of finding answers.

thanks in advance

McFinnigan? Never heard of him. Nobody here but us chickens...<br /> <br />SCJP for Java 1.4<br />SCJD for Java 5.0
I agree. Here's the link:
subject: Tomcat config issue
jQuery in Action, 3rd edition