Showing posts with label tomcat. Show all posts
Showing posts with label tomcat. Show all posts

Tuesday, April 10, 2012

Apache HTTPD integrates with Apache Tomcat

open Apache HTTPD config file (httpd.conf)

  • Remove comment to load module proxy module
    • LoadModule proxy_module modules/mod_proxy.so
    • LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  • Add Location for forward to apache tomcat

   ProxyPass ajp://localhost:8009/ javaServet 

  • Restart Apache Tomcat and Apache  HTTPD
  • Test http://localhost/javaServet   <-- similar to -->   http://localhost:8080/javaServet