We have a few legacy servers at $work where they still use mod_jk and mod_jk2. Unfortunately for us one of these was setup by the client’s admins who did not like to configure tomcat context mappings within the virtual host that only needed them. This has the affect of sending many more URLs to tomcat/jboss than necessary.

One way to get around this when you cant change those mappings is to use the SetEnv module.

In the virtual host where you want to exclude certain paths from being mapped, add the following entries and reload the config.