httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony J. Biacco" <abia...@formatdynamics.com>
Subject mod_rewrite bug/by design with mod_mem_cache cached files?
Date Fri, 05 Sep 2008 18:12:44 GMT
Hi,

I'm using apache 2.2.9 with mod_mem_cache to cache some javascript
files, which is working fine.

Today, I added a rewrite rule to forbid access (403) to everything in a
virtualhost based on the Opera browser, which obviously included the
javascript files.

Problem is, the cached files in memory weren't getting forbidden, yet
everything non-cached was.
If I turn off mod_mem_cache, everything gets forbidden as it should.

Is there either a bug in the rewrite or caching modules that is allowing
this rule to get circumvented? Is it by design? Am I messing up my
config?

Here's what I have in my virtualhost config..

RewriteCond %{HTTP_USER_AGENT} ^.*(opera).*$ [NC]
RewriteRule ^(.*)$ - [F,L]

<IfModule mod_cache.c>
                CacheDefaultExpire 300
                CacheEnable mem /js
                CacheEnable mem /images
        <IfModule mod_mem_cache.c>
                CacheIgnoreQueryString On
                MCacheRemovalAlgorithm LRU
                MCacheMaxObjectCount 100
                MCacheMaxObjectSize 150000
                MCacheMinObjectSize 10
                MCacheSize 10240
        </IfModule>
</IfModule>

Here are sample back-to-back log entries (note, last parameter in log
line is %{Age}o"
129.7.109.142 - - [05/Sep/2008:08:13:25 -0600] "GET /js/2273/pd.js?ps=6
HTTP/1.1" 200 7545 "REFERER" "Opera/9.50 (Windows NT 5.1; U; en)" 1
129.7.109.142 - - [05/Sep/2008:08:13:27 -0600] "GET
/cp/psj?killCache=1220624007222&divId=2273&printSpecId=6 HTTP/1.1" 403
15 "REFERER" "Opera/9.50 (Windows NT 5.1; U; en)" -

-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abiacco@formatdynamics.com
http://www.formatdynamics.com



---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abiacco@formatdynamics.com
http://www.formatdynamics.com



Mime
View raw message