httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hasson Yehudit" <>
Subject [users@httpd] use the apache as a proxy server with caching
Date Tue, 05 Sep 2006 14:29:56 GMT

I have some questions related to the configuration of apache 2.2. 
I am working on Unix and I want to use the apache as a proxy server with

I used --enable-proxy --enable-cache --enable-disk-cache 

1) If both disk_cache and mem_cache are enable, when files will be kept
on disk? What is the algorithm?

2) What is better to use? Mem_cache or disk_cache?  
(I read some previous responses that disk_cache is faster because in
mem_cache there is a memory 
For each thread), does it correct?

3) How can I config httpd.conf to support only disk_cache?
My configuration goes as following, what is wrong with it?
I ran the apache with this configuration, but the files were not cached
in CacheRoot.

<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from
ProxyVia On

<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot /var/cti/db/apache
CacheEnable disk /
CacheDirLevels 3
CacheDirLength 4
CacheMaxExpire 240 
CacheLastModifiedFactor 1 
CacheDefaultExpire 240 

#<IfModule mod_mem_cache.c>
#CacheEnable mem /
#MCacheSize 4096
#MCacheMaxObjectCount 100
#MCacheMinObjectSize 1
#MCacheMaxObjectSize 2048


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message