Configure Apache to forward dynamic page requests to Tomcat in friendly url scenarios -


I have a website with a friendly URL.

I want all the URLs that .htm, .gif, .jpg, .css, .js are delivered directly to the Apache web server and the rest is sent to the comet.

Examples of dynamic URLs that should be sent to Tomcat:

  www.mysite.com/news/newsItem1 www.mysite.com/videos www.mysite.com/ News / list.jsp  

Examples of static URLs are on the same site as should be served by Apache:

  www.mysite.com/news/newsItem2 .htm www.mysite.com/image1.gif  

Using jk_module I figured out how to configure jac mount such as jsp Is to Tomcatize ... but I am not seeing an operator in the URL so that I can specify something like this: If url does not end with .htm or .gif or .jpg or .css or .js then for Tomcat ahead.

Any ideas how can I do this?

Here's an excasp:

 # By default, all requests Go to worker 1 JkMount / * worker1 # Use HTML, JPG and GIF httpd JkUnMount /*.html worker1 JkUnMount /*.jpg worker1 JkUnmount / o.gif worker1 

You have it normalized for your needs can do.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -