I'm currently unable to redirect/rewrite my application in Jetty6. I use Apache as a front-end proxy since I host non-Java based applications as well. My apache2 configuration uses ProxyPass:
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
My directory structure is standard:
/var/lib/jetty/webapps/
/root/
/app1dir/
/app2dir/
I want to be able to redirect traffic from:
/var/lib/jetty/webapps/root/somedir/*
to:
/var/lib/jetty/webapps/app1dir/somedir/*
I've tried using Apache rewrite rules as well as .htaccess files with no luck.
Jetty still throws a 404.