| Author |
use memory caching in proxy mode
|
|
| yehudit.hasson@comverse.com 2006-08-16, 7:33 am |
| I have a question about the configuration of the apache server in
mod_proxy.
I have the following configuration:
<IfModule mod_proxy.c>
ProxyRequests On
<Directory proxy:*>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>
CacheRoot "/var/cti/db/apache"
CacheSize 1000
CacheGcInterval 4
CacheMaxExpire 86400
#24 hours
CacheLastModifiedFactor 0.1
CacheDefaultExpire 3600
NoCache 127.0.0.1/6.wav
</IfModule>
How do I config the server to use both memory cache and disk cache in
proxy mode?
| |
| Hutten 2006-08-16, 7:33 am |
| Add following (modify to your needs):
LoadModule mem_cache_module modules/mod_mem_cache.so
<IfModule mod_mem_cache.c>
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
</IfModule>
http://httpd.apache.org/docs/2.2/mod/mod_cache.html
| |
| yehudit.hasson@comverse.com 2006-08-17, 1:21 pm |
| Thanks for your answer, I tried it and I got an error message:
Invalid command 'LoadModule' , perhaps mis-spelled or defined by a
module not
include in the server configuration.
|
|
|
|