Hi All, this document deals with how to setup mod cache in apache2.
Web caching the way of improving the server performance, so all the cached requests will be served from the cache resource without directly accessing from the web server. The dynamic contents will be shared from the web server itself.
In this document, I will show you how to install and configure mod_cache in apache web server.
* Running apache web server.
Enable the mod cache modules
Restart the apache service in order to modules get affected.
Add the following configuration in the virtual host config file.
CacheLockPath is the location to store the cached contents
location block tells the root location of the web server to be cached
Restart the apache service in order to apply the cache configuration.
Now try to access your application, after that, you can see /tmp/mod_cache directory and cache files are created in the provided the location.
© 2019, Techrunnr. All rights reserved.