|
Home > Archive > Apache Server configuration support > January 2007 > Problems with mod_mem_cache and mod_proxy_ajp
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problems with mod_mem_cache and mod_proxy_ajp
|
|
| Patrick Herber 2007-01-12, 7:25 am |
| Hello!
I'm using Apache/2.2.3, which proxies requests to a Tomcat 5.5 using
mod_proxy_ajp.
Since the pages dynamically produced by Tomcat change with a regular
interval, I would like to cache all requests starting with /market for
5 minutes. I've setup mod_mem_cache but it does not seems to work (no
caching is done). Under you will find the pieces of configuration
regarding mod_proxy_ajp, mod_cache and mod_mem_cache (by the way, all
three modules are loaded in a separated file). Do you see some error in
this configuration?
<IfModule mod_cache.c>
<IfModule mod_mem_cache.c>
CacheEnable mem /market
MCacheSize 65096
MCacheMaxObjectCount 200
MCacheMinObjectSize 1
MCacheMaxObjectSize 8096
CacheDefaultExpire 300
CacheMaxExpire 300
</IfModule>
</IfModule>
<IfModule mod_proxy_ajp.c>
ProxyRequests Off
<Location / >
ProxyPass ajp://localhost:8009/
ProxyPassReverse ajp://localhost:8009/
</Location>
</IfModule>
Thanks a lot for your help
Patrick
| |
| Patrick Herber 2007-01-12, 7:25 am |
| Hello!
For information, I've changed from mod_mem_cache to mod_disk_cache and
now it's working fine. Since I've now also read some threads suggesting
the use of disk_cache over mem_cache, my problem is so solved.
This is my disk_cache configuration:
<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheEnable disk /market/
ProxyPreserveHost On
CacheIgnoreCacheControl On
CacheIgnoreNoLastMod On
CacheRoot /tmp/cache
CacheDefaultExpire 300
CacheMaxExpire 300
</IfModule>
</IfModule>
Thanks and regards,
Patrick
|
|
|
|
|