Hi,
I have a Apache + JRun 3.1 setup.
Apache version 1.3 on Windows 2000
The problem is that currently JRun is serving all the static content
including css, js and images. Additionally JRun 3.1 does not turn on
the expires http header so the content is not being cached on the
client.
So I want to make sure that Apache serves the images and not JRun. I
tried to use mod_alias to setup aliases for the image request
directories. But Apache was still handing off the image requests to
JRun. What can I do make sure that Apache serves the pages ?
The solution that I have right now is as follows:
1) Use mod_rewrite to transform all requests for images from
RewriteRule ^/PDC43Training/images(.*)
http://xyz.xyz.com/PDC43/images$1
2) Then use mod_alias to serve the page
Alias /PDC43/images/ D:/PDC43Training/Omct/images/
3) I have mod_expires set all image expiration = access + 1 month
The problem with this solution is that I am seeing a lot of HTTP 302
messages which is waste of bandwidth and is also not optimal.
What can I do to solve this?