Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring Apache Web Server with Tomcat

 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

     
    Em Aiy
    Ranch Hand
    Posts: 226
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic