[users@httpd] Reverse Proxy Cache not Caching in 2.2.2

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

 



I'm trying to set up a reverse proxy cache to cache images in memory, to
relieve disk load on the server that's actually storing them.

The reverse proxy part is working perfectly, but the files are not being
cached. Mod_proxy, mod_cache and mod_mem_cache are all compiled in, and
it's a 64-bit build running under Solaris 10 on Opteron.

Here are the relevant parts of the config on the caching proxy:

ProxyPass / http://10.6.3.1/
ProxyPassReverse / http:/10.6.3.1/
ProxyPreserveHost On
CacheEnable mem /
CacheDefaultExpire 900
CacheLastModifiedFactor 0.05
CacheMaxExpire 3600
MCacheMaxObjectSize 8192
MCacheMaxObjectCount 1000000
MCacheRemovalAlgorithm GDSF
MCacheSize 2048000


I have logging set to DEBUG, and here is the log from a request:

[Tue May 30 10:18:28 2006] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /14k/13115/13115_419067A_19067_IMG_00_t.JPG
[Tue May 30 10:18:28 2006] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /14k/13115/13115_419067A_19067_IMG_00_t.JPG
[Tue May 30 10:18:28 2006] [debug] mod_proxy_http.c(54): proxy: HTTP:
canonicalising URL //10.6.3.1/14k/13115/13115_419067A_19067_IMG_00_t.JPG
[Tue May 30 10:18:28 2006] [debug] proxy_util.c(1378): [client 10.6.3.3]
proxy: http: found worker http://10.6.3.1/ for
http://10.6.3.1/14k/13115/13115_419067A_19067_IMG_00_t.JPG
[Tue May 30 10:18:28 2006] [debug] mod_proxy.c(756): Running scheme http
handler (attempt 0)
[Tue May 30 10:18:28 2006] [debug] mod_proxy_http.c(1662): proxy: HTTP:
serving URL http://10.6.3.1/14k/13115/13115_419067A_19067_IMG_00_t.JPG
[Tue May 30 10:18:28 2006] [debug] proxy_util.c(1798): proxy: HTTP: has
acquired connection for (10.6.3.1)
[Tue May 30 10:18:28 2006] [debug] proxy_util.c(1858): proxy: connecting
http://10.6.3.1/14k/13115/13115_419067A_19067_IMG_00_t.JPG to
10.6.3.1:80
[Tue May 30 10:18:28 2006] [debug] proxy_util.c(1951): proxy: connected
/14k/13115/13115_419067A_19067_IMG_00_t.JPG to 10.6.3.1:80
[Tue May 30 10:18:28 2006] [debug] proxy_util.c(2045): proxy: HTTP: fam
2 socket created to connect to 10.6.3.1
[Tue May 30 10:18:28 2006] [debug] proxy_util.c(2141): proxy: HTTP:
connection complete to 10.6.3.1:80 (10.6.3.1)
[Tue May 30 10:18:28 2006] [debug] mod_proxy_http.c(1448): proxy: start
body send
[Tue May 30 10:18:28 2006] [debug] mod_cache.c(602): cache: Caching url:
/14k/13115/13115_419067A_19067_IMG_00_t.JPG
[Tue May 30 10:18:28 2006] [debug] mod_cache.c(608): cache: Removing
CACHE_REMOVE_URL filter.
[Tue May 30 10:18:28 2006] [info] mem_cache: Cached url:
http://media.rightmove.co.uk:80/14k/13115/13115_419067A_19067_IMG_00_t.J
PG?
[Tue May 30 10:18:28 2006] [debug] mod_proxy_http.c(1537): proxy: end
body send
[Tue May 30 10:18:28 2006] [debug] proxy_util.c(1816): proxy: HTTP: has
released connection for (10.6.3.1)


Mike Scott

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs service. 
________________________________________________________________________

---------------------------------------------------------------------
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