I'm trying to log into a tomcat app (6.0.x) using apache (2.2.x) as the front end using mod_proxy_ajp. Everything works great except when I try to set up the app as a "default" or "root" app for my domain. In this case, the login fails because it appears that j_security_check is not being forwarded correctly.
For example: I can get http://www.mydomain.com/mywebapp/secureAction.do works fine. In this case my apache VirtualHost configuration looks like:
However, if I try to make it the default app for my domain (e.g. http://www.mydomain.com/secureAction.do) Apache fails with a connection reset exception. The access_log displays about 10 entries like:
In this case, my apache VirtualHost looks like:
I tried adding a line so the proxy passes look like :
But I got the same behavior as I got without that extra line.
Anyone have any ideas on the correct way to do this? BTW, I really DO want everything for this specific domain to get fowarded to the webapp. My only problem right now is related to the tomcat login.
Thanks in advance!