Changes: 9.8.2024

ExpiresActive issue:

If you’re getting this message on your Apache installation and a 500 Internal Server Error message, you’ve used the ExpiresActive command in a .htaccess file or the apache2.conf (or httpd.conf) file without including the Expires module.

ln -s /etc/apache2/mods-available/expires.load /etc/apache2/mods-enabled/
sudo systemctl restart apache2

Cacheroot

CacheRoot /var/cache/apache2/mc/mod_cache_disk.  mc is for the mc.scsiraidguru.com web site. 

I set a custom path for each of my virtual hosts.   The /var directory has its own virtual disk.

Each virtual server has a separate cacheroot directory.  This one is set for mc.scsiraidguru.com

CacheRoot /var/cache/apache2/mc/mod_cache_disk
sudo chown root:www-data /var/cache/apache2/mc/mod_cache_disk
CacheRoot /var/cache/apache2/mc/mod_cache_disk
CacheQuickHandler on
CacheLock on
CacheLockPath /tmp/mod_cache-lock
CacheLockMaxAge 5
CacheIgnoreHeaders Set-Cookie
CacheEnable disk /
CacheHeader on
CacheDefaultExpire 800
CacheMaxExpire 64000
CacheIgnoreNoLastMod On
ExpiresActive on
ExpiresDefault A300