tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Mapping question
Date Thu, 26 Jun 2008 14:33:58 GMT
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: [users@httpd] Mapping URI to Port : is this possible?
Date: Thu, 26 Jun 2008 16:08:50 +0200
From: Johnny Kewl <john@kewlstuff.co.za>
Reply-To: users@httpd.apache.org
To: <users@httpd.apache.org>

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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message