OK, I'm stumped.
Environment: Solaris (sparc) 2.6
apache 1.3.11
modperl 1.21
perl 5.00503
I've got a heavy modperl server, dynamically generating date bar
images (http://date.boston.com/). I'm setting up a high speed, low
drag proxying server in front of this to free the heavy server from
the burden of sending data to clients at the end of slow dialup
connections, as recommended in Stas' guide.
The proxying part works fine, but in trying to get the proxy server to
cache the generated images, I can't seem to get it to work correctly.
Running 'ab' to put a load on the server, I see requests to the proxy,
and its (the proxy's) requests to the backend server for every
request.
(For testing, I currently have the proxying server running on port
8080 -- http://date2.boston.com:8080/, and the modperl server on port
80.)
Here are some pertinent lines from my config:
ProxyRequests on
ProxyPass / http://date2.boston.com:80/
CacheRoot "/apache/proxy2/cache"
CacheSize 100
CacheGcInterval 4
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
Yes, the cache directory is owned by the user/group that the web
server is running as.
Yes, my date generation module is supplying an 'Expires' header to the
returned image.
The only thing in the cache directory is a '.time' file, with a
modification time that reflects that of the last server request.
Anyone have any ideas what could be causing the caching not to work?
Thanks.
<Steve>
-=-=-=-=-=-=-=-=-=- My God! What have I done? =-=-=-=-=-=-=-=-=-=
Steve Reppucci 617/929-7003
Director of Software Development reppucci@boston.com
Boston.com (Times Company Digital) Be Open
Environment: Solaris (sparc) 2.6
apache 1.3.11
modperl 1.21
perl 5.00503
I've got a heavy modperl server, dynamically generating date bar
images (http://date.boston.com/). I'm setting up a high speed, low
drag proxying server in front of this to free the heavy server from
the burden of sending data to clients at the end of slow dialup
connections, as recommended in Stas' guide.
The proxying part works fine, but in trying to get the proxy server to
cache the generated images, I can't seem to get it to work correctly.
Running 'ab' to put a load on the server, I see requests to the proxy,
and its (the proxy's) requests to the backend server for every
request.
(For testing, I currently have the proxying server running on port
8080 -- http://date2.boston.com:8080/, and the modperl server on port
80.)
Here are some pertinent lines from my config:
ProxyRequests on
ProxyPass / http://date2.boston.com:80/
CacheRoot "/apache/proxy2/cache"
CacheSize 100
CacheGcInterval 4
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
Yes, the cache directory is owned by the user/group that the web
server is running as.
Yes, my date generation module is supplying an 'Expires' header to the
returned image.
The only thing in the cache directory is a '.time' file, with a
modification time that reflects that of the last server request.
Anyone have any ideas what could be causing the caching not to work?
Thanks.
<Steve>
-=-=-=-=-=-=-=-=-=- My God! What have I done? =-=-=-=-=-=-=-=-=-=
Steve Reppucci 617/929-7003
Director of Software Development reppucci@boston.com
Boston.com (Times Company Digital) Be Open