From: Lucien Gentis Date: Wed, 11 Feb 2009 17:12:18 +0000 (+0000) Subject: MMapStatic directive doesn't exist. X-Git-Tag: 2.3.2~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13e8f166965ac54c98cdfd17d659ea42a969c746;p=apache MMapStatic directive doesn't exist. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@743408 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/caching.xml b/docs/manual/caching.xml index 7fa5610221..1feebc0b27 100644 --- a/docs/manual/caching.xml +++ b/docs/manual/caching.xml @@ -64,7 +64,7 @@

As mod_file_cache presents a relatively simple caching implementation, apart from the specific sections on CacheFile and MMapStatic, the explanations + module="mod_file_cache">MMapFile, the explanations in this guide cover the mod_cache caching architecture.

@@ -88,9 +88,8 @@ CacheEnable CacheDisable - MMapStatic - CacheFile CacheFile + MMapFile UseCanonicalName CacheNegotiatedDocs @@ -455,7 +454,7 @@ Vary: negotiate,accept-language,accept-charset CacheEnable CacheDisable - MMapStatic + MMapFile @@ -516,16 +515,16 @@ sys 0m0.000s better performed by Apache.

- MMapStatic Caching + MMapFile Caching

mod_file_cache provides the - MMapStatic directive, which + MMapFile directive, which allows you to have Apache map a static file's contents into memory at start time (using the mmap system call). Apache will use the in-memory contents for all subsequent accesses to this file.

-
MMapStatic /usr/local/apache2/htdocs/index.html
+
MMapFile /usr/local/apache2/htdocs/index.html

As with the @@ -533,7 +532,7 @@ sys 0m0.000s changes in these files will not be picked up by Apache after it has started.

-

The MMapStatic +

The MMapFile directive does not keep track of how much memory it allocates, so you must ensure not to over-use the directive. Each Apache child process will replicate this memory, so it is critically important diff --git a/docs/manual/caching.xml.fr b/docs/manual/caching.xml.fr index 85d421d466..4decfd13aa 100644 --- a/docs/manual/caching.xml.fr +++ b/docs/manual/caching.xml.fr @@ -75,7 +75,7 @@ implémentation de mise en cache relativement simple, mises à part les sections spécifiques sur les directives CacheFile et MMapStatic, les explications fournies + module="mod_file_cache">MMapFile, les explications fournies dans ce guide concernent l'architecture de mise en cache du module mod_cache.

@@ -101,9 +101,8 @@ CacheEnable CacheDisable - MMapStatic - CacheFile CacheFile + MMapFile UseCanonicalName CacheNegotiatedDocs @@ -513,7 +512,7 @@ Vary: negotiate,accept-language,accept-charset CacheEnable CacheDisable - MMapStatic + MMapFile @@ -582,9 +581,9 @@ sys 0m0.000s circonstances.

- Mise en cache à l'aide de la directive MMapStatic + Mise en cache à l'aide de la directive MMapFile -

La directive MMapStatic +

La directive MMapFile fournie par le module mod_file_cache vous permet de demander à Apache de charger un contenu de fichier statique en mémoire lors de son démarrage (à l'aide de l'appel système mmap). Apache @@ -592,7 +591,7 @@ sys 0m0.000s toutes les demandes d'accès à ce fichier.

-
MMapStatic /usr/local/apache2/htdocs/index.html
+
MMapFile /usr/local/apache2/htdocs/index.html

Comme dans le cas de la directive @@ -601,7 +600,7 @@ sys 0m0.000s ce dernier démarré.

La directive - MMapStatic ne gardant + MMapFile ne gardant pas la trace de la quantité de mémoire qu'elle alloue, vous devez prendre garde de ne pas en abuser. Chaque processus enfant d'Apache utilisant sa propre réplique de la mémoire allouée, il est donc d'une importance diff --git a/docs/manual/mod/mod_file_cache.xml b/docs/manual/mod/mod_file_cache.xml index 9f777b6cde..78609e65c5 100644 --- a/docs/manual/mod/mod_file_cache.xml +++ b/docs/manual/mod/mod_file_cache.xml @@ -63,10 +63,7 @@ >MMapFile or CacheFile directives in the main server configuration.

-

Not all platforms support both directives. For example, Apache - on Windows does not currently support the MMapStatic directive, while - other platforms, like AIX, support both. You will receive an error +

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 @@ -179,7 +176,7 @@ 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.

+ server should be restarted to re-cache them.

Be careful with the file-path arguments: They have to literally match the filesystem path Apache's URL-to-filename