tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Mapping question
Date Thu, 26 Jun 2008 14:33:58 GMT

Below is a question sent to the httpd users list, as a context for my 
own question :

Suppose I have the same front-end scenario as described below for 
Apache, and have one single Tomcat server behind it.

Is it possible in Tomcat to define two virtual <Host>s who would share 
the same webapp directory ?  I mean that the software application code 
would be shared, but depending on the host accessed, the data used by 
the application might be different ?
Or is that a recipe for trouble in some way ?
Or is there a much better way to do this kind of thing ?

Iow, my mappings would be like

User accesses either :

map to (Apache in the middle)


with tomcat and tomcat-demo sharing the same webapp base directory.


-------- Original Message --------
Subject: [users@httpd] Mapping URI to Port : is this possible?
Date: Thu, 26 Jun 2008 16:08:50 +0200
From: Johnny Kewl <>
To: <>

Hi there,

Is this possible... two machines, or two servers behind Apache and one want
to make

map to (Apache in the middle)

So the machines behind see only these URI's, even if they look at headers,
they see only what Apache is showing them and respond to those requests...

The browser see everything relative to /dev  or / test


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message