title: mod_jk problems with connecting apache2 and tomcat6
body: <p>I am trying to configure mod_jk to forward requests to my webapp running in tomcat. ( I read else where that mod_proxy_ajp is the way to go but want to get this figured out first). I am new to tomcat and mod_jk.</p>
  
  <p>I try to access -- <a href="http://www.example.com/test/index.jsp" rel="nofollow noreferrer">http://www.example.com/test/index.jsp</a></p>
  
  <p>I get a 400 error in my apache logs after I configured mod_jk. The webapp is working fine when I test it directly in tomcat.  In the mod_jk log file I see that it is trying to map the A/index.jsp but its failing with a 400. So I see that the mod_jk is getting invoked but somehow modjk is not seeing the webapp.</p>
  
  <p>Any help is greatly appreciated</p>
  
  <p>I am on a SuSe Linux 11 and am running apache and tomcat on the same box.</p>
  
  <p>My httpd.conf is a monolithic file. In it I added the following -- </p>
  
  <pre><code>&lt;IfModule jk_module&gt;
  Alias /test/ "/srv/tomcat6/webapps/A"
  JkWorkersFile   /usr/local/apache2/conf/workers.properties
  JkShmFile       /usr/local/apache2/logs/mod_jk.shm
  JkLogFile       /usr/local/apache2/logs/mod_jk.log
  JkLogLevel      debug
  JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
  
  JKMount        /test/ A1
  JkMount     /test/* A1
  JkOptions       +ForwardSSLCertChain
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I have the following in the workers.properties -- </p>
  
  <pre><code>#Define 1 real worker using ajp13
  worker.list=A
  #Set properties for worker1 (ajp13)
  worker.worker1.type=ajp13
  worker.worker1.host=localhost
  worker.worker1.port=8009
  worker.ajp13.lbfactor=50
  worker.ajp13.cachesize=10
  worker.ajp13.cache_timeout=600
  worker.ajp13.socket_keepalive=1
  worker.ajp13.socket_timeout=300
  </code></pre>
  
  <p>Thanks,
   - Vas</p>