I'm setting up mod_jk for Apache to use with Tomcat and there are two issues I've ran into.
I have SSL enabled on Apache and all traffic is going through HTTPS, including the requests forwarded to Tomcat. Does Tomcat also need to be configured for SSL in any way or does Apache handle it completely? Everything I have found doesn't say Tomcat needs any configuration but I'm getting the following error in Tomcat which could be related.
IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
My appBase in Tomcat is the typical "path/to/webapps" and when Apache forwards a request it naturally gives it the full path. However, since I only want to forward certain URLs to Tomcat, my JkMount looks something like "JkMount /apps/* worker1". The problem is that Tomcat will be looking for the applications in "path/to/webapps/apps/" which is not the directory the applications get deployed in. Using RewriteRule to remove the "apps" from the path I assume would cause it to not be forwarded to Tomcat. I'm not sure if there are any better solutions.