I work on an application that runs on apache which is the https handler.
But internally, it is running on http behind a firewall, apache routes the request to the app.
Thus,
using something like this:
<form-login login-page="/Login.html"
authentication-failure-url="https://www.ourapp.com/FailureLogin.jsp"
always-use-default-target="false"
default-target-url="https://www.ourapp.com/SuccessLogin.jsp"/>
works
where-as using:
<form-login login-page="/Login.html"
authentication-failure-url="/FailureLogin.jsp"
always-use-default-target="false"
default-target-url="/SuccessLogin.jsp"/>
does not work,
debugging and checking logs revealed that a call was made to http://www.ourapp.com/SuccessLogin.jsp
which does not exist.
Since our app is used in multiple environments, it is desirable to mention urls in this manner.
Is there a work around for this in code/config ?




