Apache disk_cache.conf configuration example for Ubuntu 12.04 LTS (Precise Pangolin)

Get the default configuration file disk_cache.conf for Apache, optimized for Ubuntu 12.04 LTS (Precise Pangolin). This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/apache2/mods-available/disk_cache.conf.

For more configurations and setup guides, visit our related files section to further customize your system.

    <IfModule mod_disk_cache.c>
# cache cleaning is done by htcacheclean, which can be configured in
# /etc/default/apache2
#
# For further information, see the comments in that file, 
# /usr/share/doc/apache2.2-common/README.Debian, and the htcacheclean(8)
# man page.

	# This path must be the same as the one in /etc/default/apache2
        CacheRoot /var/cache/apache2/mod_disk_cache

	# This will also cache local documents. It usually makes more sense to
	# put this into the configuration for just one virtual host.

	#CacheEnable disk /

        CacheDirLevels 5
        CacheDirLength 3
</IfModule>

    
  

Config Details

Location
/etc/apache2/mods-available/disk_cache.conf
Operating system
Ubuntu 12.04 LTS (Precise Pangolin)
Length
19 lines
MD5 checksum
fe06d97d8cb000ef4b60ba2a7cff92e9

Usage

Download the raw file with wget or curl

Wget

wget -O disk_cache.conf.example https://exampleconfig.com/static/raw/apache/ubuntu12.04/etc/apache2/mods-available/disk_cache.conf

cURL

curl https://exampleconfig.com/static/raw/apache/ubuntu12.04/etc/apache2/mods-available/disk_cache.conf > disk_cache.conf.example