How to set web cache in apache
Hi all,
The apache after the installation is not allowed by the cache. If i add the cache, or squid Servers requested web acceleration, then it needs to be set htttpd.conf where, of course, the premise that when i install Apache to activate the mod_cache module. How to set web cache in Apache. Please send details. Thanks in advance.
How to set web cache in apache
I have the following steps that brief of installation and configuration steps:
# Apache version: httpd-2.0.49.tar.gz
# Install httpd-2.0.49.tar.gz:
# Tar-zxvf httpd-2.0.49.tar.gz
# Cd httpd-2.0.49
#. / configure - enable-cache - enable-disk-cache - enable-mem-cache
# mke
# make install and check.
Best of luck.
How to set web cache in apache
You need to test whether the cache module is installed. Check / usr/local/apache2/bin/apachectl-l. If there is mod_cache.c, mod_disk_cache.c
mod_mem_cache.c.These three modules, shows that the Apache can support the cache of the server. Change httpd.conf settings, vi / usr/local/apache2/conf/httpd.conf and add at the end: the
Code:
<IfModule Mod_cache.c>
.
Check and reply.
How to set web cache in apache
You can enable Cache. Start mod_cache, then take two parameters. The first parameter specifies the type of cache should be set mem (memory cache) or disk (disk cache) of the one; the second parameter specifies the URI using the cached path, if the entire site (or virtual host) for the cache, simply designated as the root directory (/) can be.
CacheForceCompletion: This value specifies when the HTTP request was canceled, the content of actions to complete the percentage of produce; default is 60 (%).
CacheDefaultExpire: Specifies the default cache expiration seconds; default value is one hour (3600).
CacheMaxExpire: Specifies the largest cache of expired seconds; default value is one day (86400).
CacheLastModifiedFactor: Lane Last Modified is used to respond to information from the calculated expire date.
Re: How to set web cache in apache
If you use squid reverse proxy to the server, then it can be achieved through the cache to accelerate the web. check the code;
Code:
expire period (expiration time-distance) = updated since the last time interval * CacheLastModifiedFactor
Code:
The expire date = current time + expire period
But in any case, the expiration time can not exceed CacheMaxExpire settings.
Check and reply.