Rewriting URL for tomcat through an apache AJP connector.

Posted by StudentKen on Server Fault See other posts from Server Fault or by StudentKen
Published on 2011-03-06T21:21:10Z Indexed on 2011/03/07 8:12 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

I've tried several attempts to resolve this, but all have come up naught.

Currently I have apache setup to forward all urls at and past the /portal/ tag to tomcat. Unfortunately, tomcat receives these requests through /portal/appName, a subdirectory in webapps rather than the webapps root directory where my wars are deployed.

Is there a simple solution to this that I'm not seeing? I've been trying to use mod_rewrite to ^/portal/ $ / but that doesn't yield the expected results (perhaps I'm doing this wrong?).

© Server Fault or respective owner

Related posts about apache2

Related posts about mod-rewrite