Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat config issue  RSS feed

Jeremy Botha
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!