Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6763837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:31:26+00:00 2026-05-26T14:31:26+00:00

I recently installed Apache w/s + Tomcat and using jk was able to route

  • 0

I recently installed Apache w/s + Tomcat and using jk was able to route requests from apache to t/c. The examples on the net are usually of the form:

JkMount /*.jsp myTC

We have several Java EE applications running on a single instance of tomcat (then why use apache? believe me i have reasons). I figured we could change the context for each of those applications to something like:

/servlet/application1/
/servlet/application2/
/servlet/application3/

and then have something like:

JkMount /servlet/* myTC

This would route the requests to tomcat correctly, however, the question remains how to serve static resources for a standard Java EE application:

/webapp-root
    resources/
       css/
       js/
       images/
    WEB-INF/
       /usual-folder-structure

The questions are:

  1. How to serve resources/ folder from apache? all the applications have their own resources/ folder. I figure resources/ will have to reside ‘out’ of the war and on apache’s doc-root somewhere, but can’t figure out the JkMount string.

  2. Is the /servlet/ scheme the ‘correct’ way to do it? are there patterns I should follow?

I’ll appreciate any help, any pointers to resources on the net would be great as I need to read a lot more about this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:31:26+00:00Added an answer on May 26, 2026 at 2:31 pm

    (1) The following should be enough:

    JkMount /* myTC
    JkUnMount /resources/* myTC
    

    (2) It’s OK. There are many correct solutions. I personally don’t like /servlet/ in the URL. It’s garbage, especially in this age where URLs are an asset of a website/webapp. I use this scheme:

    JkMount /* myTC
    JkUnMount /*.css myTC
    JkUnMount /*.ico myTC
    JkUnMount /*.jpg myTC
    JkUnMount /*.js myTC
    JkUnMount /*.png myTC
    JkUnMount /*.xml myTC
    JkUnMount /*.zip myTC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently installed Rails on a cpanel machine using this guide: http://www.cpanel.net/blog/cpanel-whm-admins/2011/07/installing-mod-rails-and-rails-309-on-a-cpanel-machine.html When I
We recently installed Team Foundation Server 2008 and we are using it for both
I recently installed (from the binary installers) GHC 6.12 and the Haskell Platform 2010.1.0.1
I've recently installed Apache on my FreeBSD machine. All was working fine; telnet via
I recently installed the ASP.NET MVC 4 Developer Preview (which Microsoft says can be
I am using Windows 7 and have recently installed Eclipse Helios(64bit). I was controlling
Ok So I installed Apache httpd a while ago and have recently come back
I recently installed the Mono Framework, .net 3.5 f/w and MonoDevelop (hint: I'm trying
I recently installed xdebug on my ststem and wanted to increase xdebug.var_display_max_depth from 3
I've been using a vanilla apache install until recently with no major problems. Today

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.