]> git.pld-linux.org Git - packages/apache.git/blob - apache-mod_cache.conf
- more examples
[packages/apache.git] / apache-mod_cache.conf
1 LoadModule cache_module modules/mod_cache.so
2
3 #
4 # Sample Cache Configuration
5 #
6
7 <IfModule mod_cache.c>
8         #LoadModule disk_cache_module modules/mod_disk_cache.so
9         # If you want to use mod_disk_cache instead of mod_mem_cache,
10         # uncomment the line above and comment out the LoadModule line below.
11         <IfModule mod_disk_cache.c>
12                 CacheRoot "/var/cache/httpd"
13                 CacheEnable disk /
14                 CacheDirLevels 5
15                 CacheDirLength 3
16                 
17                 #CacheDefaultExpire 3600
18                 #CacheMinExpire 3600
19                 #CacheMinFileSize 64
20                 #CacheMaxFileSize 64000
21
22         </IfModule> 
23
24         LoadModule mem_cache_module modules/mod_mem_cache.so
25         <IfModule mod_mem_cache.c>
26                 CacheEnable mem /
27                 MCacheSize 4096
28                 MCacheMaxObjectCount 100
29                 MCacheMinObjectSize 1
30                 MCacheMaxObjectSize 2048
31         </IfModule>
32
33         # When acting as a proxy, don't cache the list of security updates
34 #       CacheDisable http://security.update.server/update-list/
35 </IfModule>
This page took 0.025831 seconds and 3 git commands to generate.