I have Apache 2.4 forwarding *:80 traffic to my sole Tomcat 7.0 webapp (Guacamole) like so:
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://localhost:8080/guacamole/
ProxyPassReverse / http:/localhost:8080/guacamole/
ProxyPassReverseCookiePath / http://localhost:8080/guacamole
This works, except when I log out of the webapp, I get the following 404 as reported by Tomcat:
HTTP Status 404 - /guacamole/guacamole/index.xhtml
From what I've read I've got several options, including using ProxyPass/redirect, rewrite, VirtualHost, and symlinks. Some of these options are possible under both Apache and Tomcat configs. I'm confused. What's the best method to ensure /guacamole/guacamole/index.xhtml
(or *) requests get to to /guacamole/index.xhtml
?
(I know no Java if the actual root cause is in the Guacamole webapp code.)