virtualmin apache setting

mod_cache.c,mod_mem_cache.c,mod_disk_cache.c

 

 

Servers — Apache Webserver —Global configuration — Configure Apache Modules — enable

 

 

etc/apache2/httpd.conf

 

LoadModule cache_module modules/mod_cache.so
<IfModule mod_cache.c>
LoadModule mem_cache_module modules/mod_mem_cache.so
<IfModule mod_mem_cache.c>
CacheEnable mem /images
MCacheSize 4096
MCacheRemovalAlgorithm LRU
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
CacheMaxExpire 864000
CacheDefaultExpire 86400
CacheDisable /php
</IfModule>
</IfModule>