File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Configuring Apache Web Server with Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring Apache Web Server with Tomcat" Watch "Configuring Apache Web Server with Tomcat" New topic
Author

Configuring Apache Web Server with Tomcat

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
I am trying to configuring apache webserver with tomcat using AJP but i am not sure am i doing it right or not.

Here are the steps that i followed

  • Enabled required module in httpd.conf file



  • Added the ifModule condition in httpd.conf file



  • Added the worker.properties file to Catalina_home/conf directory with follwoing properties



  • And finally adding the connector in server.xml file of tomcat



  • Now i am trying to test to browse some JSP file at the following location "http://localhost:8009/examples/jsp/jsp2/el/basic-arithmetic.jsp" which is working fine. but i want to browse this file at http://localhost/examples/jsp/jsp2/el/basic-arithmetic.jsp.

    Have i done it right or there is something else that i can do?


    The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
    Em Aiy
    Ranch Hand

    Joined: May 11, 2006
    Posts: 226
    I want apache httpd running on front and wants to forward the jsp/servlet requests to tomcat only. I want my static pages and photos to be processed by apache and want to configure it through mod_ajp

    I have come up with some settings which actually helped me in forwarding the reqeust to tomcat. But now i can't add directive to it.. here are the configurations i have done in httpd.conf file



    How can if some request is for photos, don't forward, else forward it. Suggestions?

    P.S: currently i have ProxyPassMatch commented out
     
    jQuery in Action, 2nd edition
     
    subject: Configuring Apache Web Server with Tomcat
     
    Similar Threads
    httpd.conf content
    Apache 2.0.53 + Tomcat 5.5.7 integration on Windows using mod_jk
    apache (tomcat) not parsing XML file?
    How to test weblogic 9.2 Cluster Setup
    install tomcat on server with apache