Hi.

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 :

http://www.myserver.com/realsite/MYAPP/hello.jsp
http://www.myserver.com/demosite/MYAPP/hello.jsp

map to (Apache in the middle)

http://tomcat.myserver.local/MYAPP/hello.jsp
http://tomcat-demo.myserver.local/MYAPP/hello.jsp

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

André


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

Hi there,

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

https://www.myserver.com/dev/MYAPP/hello.jsp
https://www.myserver.com/test/MYAPP/hello.jsp

map to (Apache in the middle)

https://www.myserver.com:8080/MYAPP/hello.jsp
https://www.myserver.com:8081/MYAPP/hello.jsp

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

Thanks


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [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