Re: pretty faces 3.3.2 tomcat 7 configuration problem

Splash Forums PrettyFaces Users pretty faces 3.3.2 tomcat 7 configuration problem Re: pretty faces 3.3.2 tomcat 7 configuration problem

#21861

Petter Helset
Participant

The “solution” with ROOT.war -> ROOT is disappointing.

If you have two applications running on the same tomcat:

http://www.example.com:8080/app1/

http://www.example.com:8080/app2/

And you want to map these applications to different hosts with Apache mod_proxy:

app1.example.com –> http://localhost:8080/app1/

app2.example.com –> http://localhost:8080/app2/

<VirtualHost *:80>

ServerName app1.example.com

DocumentRoot /var/www/

ProxyRequests Off

ProxyPreserveHost On

ProxyPass / http://localhost:8080/app1/

ProxyPassReverse / http://localhost:8080/app1/

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

<Location />

Order deny,allow

Allow from all

</Location>

</VirtualHost>

<VirtualHost *:80>

ServerName app2.example.com

DocumentRoot /var/www/

ProxyRequests Off

ProxyPreserveHost On

ProxyPass / http://localhost:8080/app2/

ProxyPassReverse / http://localhost:8080/app2/

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

<Location />

Order deny,allow

Allow from all

</Location>

</VirtualHost>

It won’t work, bco the context-path problem described by adrian.wiktor in post #1.

The “solution” for this scenario is to deploy the two applications on separate tomcats at ROOT.

Is there really no other way?