httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Waltregny-Dengis <>
Subject RE: [users@httpd] Allow Apache to Serve Static Content
Date Wed, 16 Feb 2005 09:48:28 GMT

Why do you use http rather than mod_jk2?

Philippe Waltregny-Dengis

-----Original Message-----
From: Boyle Owen [] 
Sent: Wednesday, February 16, 2005 10:16 AM
Subject: RE: [users@httpd] Allow Apache to Serve Static Content

Plain text please...

We also have a Tomcat back-end but connect to it via http (not mod_jk2).
The principle should be the same, however.

What we do is serve from apache *by default*. We then use RewriteRules
in proxy-mode to direct a subset of requests to Tomcat, eg:

DocumentRoot /path/to/content

<Directory /path/to/content>
  Allow from all

RewriteRule ^/dynamic/(.*) http://localhost:8000/$1 [P]

So a request for:

http://server/static/file.txt --> /path/to/content/static/file.txt via


http://server/dynamic/page.jsp --> http://localhost:8000/page.jsp via

So really, what we do is "Allow Tomcat to Serve Dynamic Content" :-)

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

-----Original Message-----
From: Dave Morrow []
Sent: Dienstag, 15. Februar 2005 21:25
To:; Tomcat Users List
Subject: [users@httpd] Allow Apache to Serve Static Content

Hi all, I have Apache integrated with Tomcat using mod_jk2 and all is
working well with the exception of performance.  I would like to direct
Apache to serve the static content components of my Java application.
How is this done?  I presume there must be some type of httpd.conf
setting to do this?
David A. Morrow 
Technical Systems Lead 
Autodata Solutions Company 
Tel: (519) 951-6079 
Fax: (519) 451-6615  
< Poor planning on your part does not necessarily constitute an
emergency on my part. > 
This message has originated from Autodata Solutions. The attached
material is the Confidential and Proprietary Information of Autodata
Solutions. This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please delete
this message and notify the Autodata system administrator at <>
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le présent e-mail est
un message privé et personnel, sans rapport avec l'activité boursière du
Groupe SWX.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message