our IT is trying to configure a new apache/jboss/apj setup. When I browse to http://domain.com/jboss/test.jsp
and echo out the request.getRequestURL()
I get
http://domain.com/test.jsp
(without jboss) My deployed app encounteres a lot of 404's because of this.
This is what our IT department has the ProxyPassReverse set to.
<Location /jboss>
ProxyPass balancer://cluster stickysession=JSESSIONID
ProxyPassReverse https://domain.com/jboss/
</Location>
Shouldn't the directive be set to:
<Location /jboss>
ProxyPass balancer://cluster stickysession=JSESSIONID
ProxyPassReverse /jboss https://domain.com/jboss/
</Location>
Edit
The issue arrises when I use
response.sendRedirect
On our old server I used
response.sendRedirect("login.jsp?message=You have successfully logged off.");
to get things to work with the new proxy I have to recode as
response.sendRedirect("/jboss/AppName/login.jsp?message=You have successfully logged off.");
My applications are no longer portable or reuseable with the latter syntax. That line is in an my framework servlet for logging out and is shared by all of my apps.
The error (in Apache, not jboss) for
response.sendRedirect("login.jsp?message=You have successfully logged off.");
File does not exist: /folder1/folder2/AppNamelogin.jsp`
Note there is no "/" between my appname and login.jsp
The error (in Apache, not jboss) for
response.sendRedirect("/login.jsp?message=You have successfully logged off.");
File does not exist: /folder1/folder2/login.jsp
Note the AppName is missing