JSF behind a reverse proxy
843842May 25 2005 — edited Mar 7 2008I'm having a strand issue.
We have a JSP app (using Tomcat 5.0.33 and the latest myfaces implementation). It works fine when we hit Tomcat directly.
for example http://localhost:8080/Myapp/
but if we set up a reverse proxy through Apache with
ProxyPass /qss/Myapp http://localhost:8080/Myapp/
ProxyPassReverse /qss/Myapp http://localhost:8080/Myapp/
The problem is in my JSF form, after the page is generated, it says:
<form action=/Myapp/mypage.jsp" >
But if I hit the submit button, it tries to post to "/Myapp" and I get a 404.
Of course, it can't find "/Myapp" because the context is supposed to be "/qss/Myapp"
Any ideas how to resolve this. I mean this should be obvious but I just can;t figure it out.