• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache and Tomcat

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have a web application and am using Apache and TOmcat.
Is it possible to serve the static pages(images, JS and help files) thru Apache and dynamic pages(JSPs) thru Tomcat.
If possible , can you advice me what all configuration settings I need to make
(Pls note that I use 3 servlets ....am curious abt the changes for Web.xml too)
 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys any luck
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your Tomcat installation should have a discussion of configuring Tomcat to work with Apache under tomcat-docs/jk2/index.html - serving static pages by Apache and handing off servlet and jsp to Tomcat is the usual way it is done. The configuration options are way to involved to go into here.
As I understand it, web.xml does not have to be changed at all.
Bill
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, the configuration you seek is possible. In fact, in almost all the tutorials and howto's out there on this topic, apache and tomcat are configured in exactly the manner you want.

So, you say you're using 'apache and tomcat' already. How do you have them configured now?
 
reply
    Bookmark Topic Watch Topic
  • New Topic