<!-- $LastChangedRevision$ -->
<!--
- Copyright 2002-2005 The Apache Software Foundation or its licensors,
- as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
>MMapFile</directive> or <directive module="mod_file_cache"
>CacheFile</directive> directives in the main server configuration.</p>
- <p>Not all platforms support both directives. For example, Apache
- on Windows does not currently support the <directive
- module="mod_file_cache">MMapStatic</directive> directive, while
- other platforms, like AIX, support both. You will receive an error
+ <p>Not all platforms support both directives. You will receive an error
message in the server error log if you attempt to use an
unsupported directive. If given an unsupported directive, the
server will start but the file will not be cached. On platforms
directive of <module>mod_file_cache</module> maps a list of
statically configured files into memory through the system call
<code>mmap()</code>. This system call is available on most modern
- Unix derivates, but not on all. There are sometimes system-specific
+ Unix derivatives, but not on all. There are sometimes system-specific
limits on the size and number of files that can be
<code>mmap()</code>ed, experimentation is probably the easiest way
to find out.</p>
<note><title>Note</title>
<p>Don't bother asking for a directive which recursively
- caches all the files in a directory. Try this instead... See the
+ caches all the files in a directory. Try this instead... See the
<directive module="core">Include</directive> directive, and consider
this command:</p>
<module>mod_rewrite</module>.</p>
<example><title>Example</title>
+ <highlight language="config">
MMapFile /usr/local/apache/htdocs/index.html
+ </highlight>
</example>
</usage>
</directivesynopsis>
places these handles into the cache at server startup
time. Handles to cached files are automatically closed on a server
shutdown. When the files have changed on the filesystem, the
- server should be restarted to to re-cache them.</p>
+ server should be restarted to re-cache them.</p>
<p>Be careful with the <var>file-path</var> arguments: They have
to literally match the filesystem path Apache's URL-to-filename
<module>mod_rewrite</module>.</p>
<example><title>Example</title>
+ <highlight language="config">
CacheFile /usr/local/apache/htdocs/index.html
+ </highlight>
</example>
</usage>
</directivesynopsis>