[users@httpd] use the apache as a proxy server with caching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux