how i tomcat 5.5 run behind apache 2 mod_rewrite flitting by requests mod_jk stripping app context?


ok, i wish webapp controlling tomcat (5.5) run behind apache 2 (2.2.3 precise) apportionment bottom site (i.e. but context), stationary calm being served around apache.



so app controlling underneath "/myapp" tomcat i wish apache (plus mod_rewrite) act it's controlling underneath "/" instead.



mod_jk setup operative ok. i opening app "/myapp", nonetheless i can't definitely final bit working. next config i've got mod_rewrite try working. justly gets rewrites /static/ urls apache offer unpacked webapp i assent rewrite record i does try pass by requests /myapp around mod_jk. however seems mod_jk guess ask afterwards.





jkmount /myapp/* worker1

rewriteengine on

# pledge stationary things gets served apache
rewriterule ^/static/(.*)$ /var/lib/tomcat5.5/webapps/myapp/static/$1 [l]
# all else should by tomcat
rewriterule ^/(.*)$ /myapp/$1 [l,pt]



when i've finished apache 1 past i've certain mod_jk get's hallowed before mod_rewrite, nonetheless i can't seem grasp underneath apache 2. any thoughts? wholly this?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?