I have a web app server with a public IP and a local ip. When accessing the web app via the public ip I get the following problem:
When accessing a secure page I get redirected to the login page by j_security (as I should) however, it is trying to use the local IP address for this purpose i.e. http://192.168.10.135/cms/cm_login.jsp
Because the internal address is not valid for users outside the local network they get an error page.
Why is the redirection to the login page made on the local ip and not the ip address the user is accessing the application through?