|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
vlink="#000080" alink="#FF0000">
Apache HTTP Server Version 1.3Module mod_mmap_staticThis module provides mmap()ing of a statically configured list of frequently requested but not changed files. Status: Experimental SummaryThis is an experimental module and should
be used with care. You can easily create a broken site using
this module, read this document carefully.
This mmap()ing is done once at server start or restart,
only. So whenever one of the mapped files changes on the
filesystem you have to restart the server by at least
sending it a HUP or USR1 signal (see the Stopping and Restarting
documentation). To reiterate that point: if the files are
modified in place without restarting the server you
may end up serving requests that are completely bogus. You
should update files by unlinking the old copy and putting a new
copy in place. Most tools such as DirectivesMMapFile directiveSyntax: MMapFile
filename [filename] ... The Be careful with the filename arguments: They have
to literally match the filesystem path Apache's URL-to-filename
translation handlers create. We cannot compare inodes or other
stuff to match paths through symbolic links etc.
because that again would cost extra Notice: You cannot use this for speeding up CGI programs or other files which are served by special content handlers. It can only be used for regular files which are usually served by the Apache core content handler. Example:MMapFile /usr/local/apache/htdocs/index.html Note: don't bother asking for a for a
find /www/htdocs -type f -print \ | sed -e 's/.*/mmapfile &/' > /www/conf/mmap.conf Apache HTTP Server Version 1.3 |