Posted By

wumbrath on 02/11/10


Tagged

apache tomcat


Versions (?)

Apache Tomcat connect howto


 / Published in: Textpattern
 

  1. 1. Install mod_jk
  2.  
  3. 2. Enable module by adding to httpd.conf "LoadModule jk_module libexec/mod_jk.so"
  4.  
  5. 3. Either add to the mod_jk.conf or to httpd.conf something like:
  6. <IfModule jk_module>
  7. JkShmFile var/JkShmFile
  8. JkWorkerProperty worker.list=ajp13w
  9. JkWorkerProperty worker.ajp13w.type=ajp13
  10. JkWorkerProperty worker.ajp13w.host=localhost
  11. JkWorkerProperty worker.ajp13w.port=8009
  12.  
  13. JkMount /* ajp13w
  14. JkMount /<TOMCAT_HOSTED_WEBAPP> ajp13w
  15. JkMount /<TOMCAT_HOSTED_WEBAPP>/* ajp13w
  16.  
  17. <IfDefine JK_DEFAULT_CONTEXT>
  18. JkMount /examples/* ajp13w
  19. JkMount /javadoc/* ajp13w
  20. JkMount /servlets/* ajp13w
  21. JkMount /jsp-examples/* ajp13w
  22. </IfDefine>
  23. </IfModule>
  24.  
  25. 4. Make sure in your Tomcat server.xml is following entry (the port should match the one specified in step 3):
  26. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

Report this snippet  

You need to login to post a comment.