Apache - Tomcat ProxyPass VirtualHost - Context Path

Posted by Arne on Stack Overflow See other posts from Stack Overflow or by Arne
Published on 2010-04-09T13:44:57Z Indexed on 2010/04/21 6:43 UTC
Read the original article Hit count: 548

Filed under:
|
|

Hi,

I have a problem configuring apache tomcat ProxyPass directive for two applications that have two different Contaxt Pathes in tomcat. The tomcat is running behind an apache and I use the apache to proxy path the requests to tomcat. In apache I want to access both application via a hostname instead of a context path.

Scenario:

tomcat

https://domain:8443/app1
https://domain:8443/app2

in tomcat the applications have the context path app1 and app2

in apache I want to enable both application as follow:

https://app1.host/
https://app2.host/

In apache I have created a configuration for each domain:

ProxyPass /  https://localhost:8443/app1
ProxyPassReverse / https://localhost:/8443/app1

The strange thing is app1 is only available through apache using the context path:

https://app1.host/app1

Is it possible to realize such a setup with apache ProxyPass module?

Thx for your help.

© Stack Overflow or respective owner

Related posts about tomcat

Related posts about apache