]> git.pld-linux.org Git - packages/apache.git/blob - apache-mod_cache.conf
- rel 4; use currently available (unofficial) fix for latest 'Range' vuln.
[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         # If you want to use mod_disk_cache instead of mod_mem_cache,
9         # just swap the two loadmodule comments.
10 #       LoadModule disk_cache_module modules/mod_disk_cache.so
11         LoadModule mem_cache_module modules/mod_mem_cache.so
12
13         # prevent apache from cacheing cookies
14         CacheIgnoreHeaders Set-Cookie
15
16         <IfModule mod_disk_cache.c>
17                 CacheRoot "/var/cache/httpd"
18                 CacheEnable disk /
19                 CacheDirLevels 5
20                 CacheDirLength 3
21
22 #               CacheDefaultExpire 3600
23 #               CacheMinExpire 3600
24 #               CacheMinFileSize 64
25 #               CacheMaxFileSize 64000
26         </IfModule>
27
28         <IfModule mod_mem_cache.c>
29                 CacheEnable mem /
30                 MCacheSize 4096
31                 MCacheMaxObjectCount 100
32                 MCacheMinObjectSize 1
33                 MCacheMaxObjectSize 2048
34         </IfModule>
35
36         # When acting as a proxy, don't cache the list of security updates
37 #       CacheDisable http://security.update.server/update-list/
38 </IfModule>
This page took 0.034879 seconds and 3 git commands to generate.