You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steffen Neumann <sn...@ipk-gatersleben.de> on 2005/07/11 11:05:08 UTC

Apache as switchboard for Tomcat and other app servers (not FAQ)

Hi,

I'd like to have apache acting as switchboard 
for my applictaion servers, e.g.

	my.server.org 		  -> localhost (Apache)
	my.server.org/zope	  -> localhost:9673 (Zope)
	my.server.org/application -> localhost:8080/application (Tomcat)

I have the setup working for Zope (using their "VirtualHostMonster"),
and I can redirect the individual application to tomcat.

However, I'd like to configure a common prefix 
for all tomcat applications, without the need 
to configure individual applications:

	my.server.org/j2ee/app   -> localhost:8080/app (Tomcat)

apache: RewriteRule ^/j2ee/(.*) http://msbi.ipb-halle.de:8080/$1 [L,P]

This doesn't work since the links generated by the applications
don't insert the /j2ee/ part into the URL. 

QUESTION: Is there an elegant way to do this, 
          apart from organizing every individual 
          application as /j2ee/app/... ?

Yours,
Steffen