Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Configuring Apache Web Server with Tomcat

 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    reply
      Bookmark Topic Watch Topic
    • New Topic