Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Making sure Apache is serving images

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Apache appears to be serving up images slowly - My server has been working for about a year an a half w/o any issues at all. Then, for no apparent reason (please note that I say images are slow loading and the browser out. The page times have not changed. It's..

Apache not serving images to http pages - Hi guys, Has anyone had problems with apache recently? I have a fresh install of I set-up my users, chmod 777 and setup my virtual domains. This worked fine just a month ago. Now whenever I access a..

serving mpg movies from apache - I have a apache version and when I access a link to short 1 minute long mpg file, it streams with my client setup - plugin. The URL of this mpg is ..

Serving ZIP and/or doc file from Apache - Hi all, Apache 2.x Windows 2000 - Sorry, but it ends up in a Real Computer (Linux) Problem: MS Word or Zip files from server. Zip and doc files are The zip and doc files are clean in the webserver the files..

apache serving ftp-requests - Hi all 'round, for years now I have used apache for document delivery and found it flexible and reliable. And I DO know that apache is an http server, not an ftp server. However I do have a project where I am forced to offer certain documents by an ftp..
Next:  Apache: Apache & Tomcat Question?  
Author Message
tjain

External


Since: Sep 20, 2004
Posts: 1



(Msg. 1) Posted: Mon Sep 20, 2004 11:12 am
Post subject: Making sure Apache is serving images
Archived from groups: alt>apache>configuration (more info?)

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?

 >> Stay informed about: Making sure Apache is serving images 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Mon Sep 20, 2004 9:55 pm
Post subject: Re: Making sure Apache is serving images [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-09-20, Tarun Jain <tjain RemoveThis @hotmail.com> wrote:
 > 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 ?

Afaik, there is no way. The problem is that the whole directory/
application is handed over to JRun, and he just returns the completed
page to Apache to be served.

You could put the images in a different directory, outside the
JRun's application dir, but it will make your application much more
difficult to handle.

For these reasons I gave up with JRun and turned to Tomcat, that is
also for free.

Davide


--
The primary purpose of the DATA statement is to give names to
constants; instead of referring to pi as 3.141592653589793 at every
appearance, the variable PI can be given that value with a DATA
statement and used instead of the longer form of the constant. This
also simplifies modifying the program, should the value of pi change.
   -- FORTRAN manual for Xerox Computers<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Making sure Apache is serving images 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]