Rewriting a URL for tomcat through an ajp connection
        Posted  
        
            by 
                StudentKen
            
        on Pro Webmasters
        
        See other posts from Pro Webmasters
        
            or by StudentKen
        
        
        
        Published on 2011-03-06T16:17:22Z
        Indexed on 
            2011/03/06
            16:18 UTC
        
        
        Read the original article
        Hit count: 337
        
apache
|mod-rewrite
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?).
© Pro Webmasters or respective owner