httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hasson Yehudit" <Yehudit.Has...@comverse.com>
Subject FW: [users@httpd] use the apache as a proxy server with caching
Date Thu, 07 Sep 2006 07:06:08 GMT
 
Someone can help me?

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

I used --enable-proxy --enable-cache --enable-disk-cache
#--enable-mem-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 127.0.0.1
</Proxy> 
	
ProxyVia On
</IfModule>	

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

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

#</IfModule>


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message