mod_rewrite bug/by design with mod_mem_cache cached files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx
http://www.formatdynamics.com



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux