Problems with mod_mem_cache and mod_proxy_ajp

This is a discussion on Problems with mod_mem_cache and mod_proxy_ajp within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello! I'm using Apache/2.2.3, which proxies requests to a Tomcat 5.5 using mod_proxy_ajp. Since the ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2007
Patrick Herber
 
Posts: n/a
Default Problems with mod_mem_cache and mod_proxy_ajp

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

  #2 (permalink)  
Old 01-12-2007
Patrick Herber
 
Posts: n/a
Default Re: Problems with mod_mem_cache and mod_proxy_ajp

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0