title: Apache .htaccess whitelist doesn't block Tomcat with Mod_jk
body: <p>My problem is, that I recently set up a Tomcat7 application container with Apache2.2 Frontend. As the project is still under development I am controlling access by an IP whitelist set up in .htaccess for the domain. </p>
  
  <p>I set up mod_jk via AJP13 to Tomcat, it works absolutely fine, except the fact that .htaccess doesn't block the forward for Tomcat. In other words if you enter www.mydomain.com from a "black" IP, you get forwarded to the error page but if you enter www.mydomain.com/AppContext you slip through Apache into Tomcat</p>
  
  <p>I started messing with urlrewritefilter with Tomcat, but for some reason it didn't work.
  I am wondering if there is any way to set up .htaccess or apache instead to block requests forwarded to Tomcat similarly to request for Apache? </p>
  
  <p>Also noticed a dramatic speed decrease when using it like that, us that common when using Apache as a frontend?</p>