summaryrefslogtreecommitdiffstats
path: root/docs/manual/mod/mod_unique_id.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/manual/mod/mod_unique_id.html17
-rw-r--r--docs/manual/mod/mod_unique_id.html.en250
-rw-r--r--docs/manual/mod/mod_unique_id.html.fr.utf8272
-rw-r--r--docs/manual/mod/mod_unique_id.html.ja.utf8248
-rw-r--r--docs/manual/mod/mod_unique_id.html.ko.euc-kr221
5 files changed, 1008 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_unique_id.html b/docs/manual/mod/mod_unique_id.html
new file mode 100644
index 0000000..75891fe
--- /dev/null
+++ b/docs/manual/mod/mod_unique_id.html
@@ -0,0 +1,17 @@
+# GENERATED FROM XML -- DO NOT EDIT
+
+URI: mod_unique_id.html.en
+Content-Language: en
+Content-type: text/html; charset=UTF-8
+
+URI: mod_unique_id.html.fr.utf8
+Content-Language: fr
+Content-type: text/html; charset=UTF-8
+
+URI: mod_unique_id.html.ja.utf8
+Content-Language: ja
+Content-type: text/html; charset=UTF-8
+
+URI: mod_unique_id.html.ko.euc-kr
+Content-Language: ko
+Content-type: text/html; charset=EUC-KR
diff --git a/docs/manual/mod/mod_unique_id.html.en b/docs/manual/mod/mod_unique_id.html.en
new file mode 100644
index 0000000..5223942
--- /dev/null
+++ b/docs/manual/mod/mod_unique_id.html.en
@@ -0,0 +1,250 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
+<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
+<!--
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ This file is generated from xml source: DO NOT EDIT
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ -->
+<title>mod_unique_id - Apache HTTP Server Version 2.4</title>
+<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
+<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
+<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
+<script src="../style/scripts/prettify.min.js" type="text/javascript">
+</script>
+
+<link href="../images/favicon.ico" rel="shortcut icon" /></head>
+<body>
+<div id="page-header">
+<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
+<p class="apache">Apache HTTP Server Version 2.4</p>
+<img alt="" src="../images/feather.png" /></div>
+<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
+<div id="path">
+<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.4</a> &gt; <a href="./">Modules</a></div>
+<div id="page-content">
+<div id="preamble"><h1>Apache Module mod_unique_id</h1>
+<div class="toplang">
+<p><span>Available Languages: </span><a href="../en/mod/mod_unique_id.html" title="English">&nbsp;en&nbsp;</a> |
+<a href="../fr/mod/mod_unique_id.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
+<a href="../ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
+<a href="../ko/mod/mod_unique_id.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
+</div>
+<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Provides an environment variable with a unique
+identifier for each request</td></tr>
+<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
+<tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>unique_id_module</td></tr>
+<tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_unique_id.c</td></tr></table>
+<h3>Summary</h3>
+
+
+ <p>This module provides a magic token for each request which is
+ guaranteed to be unique across "all" requests under very
+ specific conditions. The unique identifier is even unique
+ across multiple machines in a properly configured cluster of
+ machines. The environment variable <code>UNIQUE_ID</code> is
+ set to the identifier for each request. Unique identifiers are
+ useful for various reasons which are beyond the scope of this
+ document.</p>
+</div>
+<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><h3>Topics</h3>
+<ul id="topics">
+<li><img alt="" src="../images/down.gif" /> <a href="#theory">Theory</a></li>
+</ul><h3 class="directives">Directives</h3>
+<p>This module provides no
+ directives.</p>
+<h3>Bugfix checklist</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">httpd changelog</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&amp;list_id=144532&amp;product=Apache%20httpd-2&amp;query_format=specific&amp;order=changeddate%20DESC%2Cpriority%2Cbug_severity&amp;component=mod_unique_id">Known issues</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&amp;component=mod_unique_id">Report a bug</a></li></ul><h3>See also</h3>
+<ul class="seealso">
+<li><a href="#comments_section">Comments</a></li></ul></div>
+<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+<div class="section">
+<h2><a name="theory" id="theory">Theory</a></h2>
+
+
+ <p>First a brief recap of how the Apache server works on Unix
+ machines. This feature currently isn't supported on Windows NT.
+ On Unix machines, Apache creates several children, the children
+ process requests one at a time. Each child can serve multiple
+ requests in its lifetime. For the purpose of this discussion,
+ the children don't share any data with each other. We'll refer
+ to the children as <dfn>httpd processes</dfn>.</p>
+
+ <p>Your website has one or more machines under your
+ administrative control, together we'll call them a cluster of
+ machines. Each machine can possibly run multiple instances of
+ Apache. All of these collectively are considered "the
+ universe", and with certain assumptions we'll show that in this
+ universe we can generate unique identifiers for each request,
+ without extensive communication between machines in the
+ cluster.</p>
+
+ <p>The machines in your cluster should satisfy these
+ requirements. (Even if you have only one machine you should
+ synchronize its clock with NTP.)</p>
+
+ <ul>
+ <li>The machines' times are synchronized via NTP or other
+ network time protocol.</li>
+
+ <li>The machines' hostnames all differ, such that the module
+ can do a hostname lookup on the hostname and receive a
+ different IP address for each machine in the cluster.</li>
+ </ul>
+
+ <p>As far as operating system assumptions go, we assume that
+ pids (process ids) fit in 32-bits. If the operating system uses
+ more than 32-bits for a pid, the fix is trivial but must be
+ performed in the code.</p>
+
+ <p>Given those assumptions, at a single point in time we can
+ identify any httpd process on any machine in the cluster from
+ all other httpd processes. The machine's IP address and the pid
+ of the httpd process are sufficient to do this. A httpd process
+ can handle multiple requests simultaneously if you use a
+ multi-threaded MPM. In order to identify threads, we use a thread
+ index Apache httpd uses internally. So in order to
+ generate unique identifiers for requests we need only
+ distinguish between different points in time.</p>
+
+ <p>To distinguish time we will use a Unix timestamp (seconds
+ since January 1, 1970 UTC), and a 16-bit counter. The timestamp
+ has only one second granularity, so the counter is used to
+ represent up to 65536 values during a single second. The
+ quadruple <em>( ip_addr, pid, time_stamp, counter )</em> is
+ sufficient to enumerate 65536 requests per second per httpd
+ process. There are issues however with pid reuse over time, and
+ the counter is used to alleviate this issue.</p>
+
+ <p>When an httpd child is created, the counter is initialized
+ with ( current microseconds divided by 10 ) modulo 65536 (this
+ formula was chosen to eliminate some variance problems with the
+ low order bits of the microsecond timers on some systems). When
+ a unique identifier is generated, the time stamp used is the
+ time the request arrived at the web server. The counter is
+ incremented every time an identifier is generated (and allowed
+ to roll over).</p>
+
+ <p>The kernel generates a pid for each process as it forks the
+ process, and pids are allowed to roll over (they're 16-bits on
+ many Unixes, but newer systems have expanded to 32-bits). So
+ over time the same pid will be reused. However unless it is
+ reused within the same second, it does not destroy the
+ uniqueness of our quadruple. That is, we assume the system does
+ not spawn 65536 processes in a one second interval (it may even
+ be 32768 processes on some Unixes, but even this isn't likely
+ to happen).</p>
+
+ <p>Suppose that time repeats itself for some reason. That is,
+ suppose that the system's clock is screwed up and it revisits a
+ past time (or it is too far forward, is reset correctly, and
+ then revisits the future time). In this case we can easily show
+ that we can get pid and time stamp reuse. The choice of
+ initializer for the counter is intended to help defeat this.
+ Note that we really want a random number to initialize the
+ counter, but there aren't any readily available numbers on most
+ systems (<em>i.e.</em>, you can't use rand() because you need
+ to seed the generator, and can't seed it with the time because
+ time, at least at one second resolution, has repeated itself).
+ This is not a perfect defense.</p>
+
+ <p>How good a defense is it? Suppose that one of your machines
+ serves at most 500 requests per second (which is a very
+ reasonable upper bound at this writing, because systems
+ generally do more than just shovel out static files). To do
+ that it will require a number of children which depends on how
+ many concurrent clients you have. But we'll be pessimistic and
+ suppose that a single child is able to serve 500 requests per
+ second. There are 1000 possible starting counter values such
+ that two sequences of 500 requests overlap. So there is a 1.5%
+ chance that if time (at one second resolution) repeats itself
+ this child will repeat a counter value, and uniqueness will be
+ broken. This was a very pessimistic example, and with real
+ world values it's even less likely to occur. If your system is
+ such that it's still likely to occur, then perhaps you should
+ make the counter 32 bits (by editing the code).</p>
+
+ <p>You may be concerned about the clock being "set back" during
+ summer daylight savings. However this isn't an issue because
+ the times used here are UTC, which "always" go forward. Note
+ that x86 based Unixes may need proper configuration for this to
+ be true -- they should be configured to assume that the
+ motherboard clock is on UTC and compensate appropriately. But
+ even still, if you're running NTP then your UTC time will be
+ correct very shortly after reboot.</p>
+
+
+ <p>The <code>UNIQUE_ID</code> environment variable is
+ constructed by encoding the 144-bit (32-bit IP address, 32 bit
+ pid, 32 bit time stamp, 16 bit counter, 32 bit thread index)
+ quadruple using the
+ alphabet <code>[A-Za-z0-9@-]</code> in a manner similar to MIME
+ base64 encoding, producing 24 characters. The MIME base64
+ alphabet is actually <code>[A-Za-z0-9+/]</code> however
+ <code>+</code> and <code>/</code> need to be specially encoded
+ in URLs, which makes them less desirable. All values are
+ encoded in network byte ordering so that the encoding is
+ comparable across architectures of different byte ordering. The
+ actual ordering of the encoding is: time stamp, IP address,
+ pid, counter. This ordering has a purpose, but it should be
+ emphasized that applications should not dissect the encoding.
+ Applications should treat the entire encoded
+ <code>UNIQUE_ID</code> as an opaque token, which can be
+ compared against other <code>UNIQUE_ID</code>s for equality
+ only.</p>
+
+ <p>The ordering was chosen such that it's possible to change
+ the encoding in the future without worrying about collision
+ with an existing database of <code>UNIQUE_ID</code>s. The new
+ encodings should also keep the time stamp as the first element,
+ and can otherwise use the same alphabet and bit length. Since
+ the time stamps are essentially an increasing sequence, it's
+ sufficient to have a <em>flag second</em> in which all machines
+ in the cluster stop serving any request, and stop using the old
+ encoding format. Afterwards they can resume requests and begin
+ issuing the new encodings.</p>
+
+ <p>This we believe is a relatively portable solution to this
+ problem. The identifiers
+ generated have essentially an infinite life-time because future
+ identifiers can be made longer as required. Essentially no
+ communication is required between machines in the cluster (only
+ NTP synchronization is required, which is low overhead), and no
+ communication between httpd processes is required (the
+ communication is implicit in the pid value assigned by the
+ kernel). In very specific situations the identifier can be
+ shortened, but more information needs to be assumed (for
+ example the 32-bit IP address is overkill for any site, but
+ there is no portable shorter replacement for it). </p>
+</div>
+</div>
+<div class="bottomlang">
+<p><span>Available Languages: </span><a href="../en/mod/mod_unique_id.html" title="English">&nbsp;en&nbsp;</a> |
+<a href="../fr/mod/mod_unique_id.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
+<a href="../ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
+<a href="../ko/mod/mod_unique_id.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
+</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div>
+<script type="text/javascript"><!--//--><![CDATA[//><!--
+var comments_shortname = 'httpd';
+var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_unique_id.html';
+(function(w, d) {
+ if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
+ d.write('<div id="comments_thread"><\/div>');
+ var s = d.createElement('script');
+ s.type = 'text/javascript';
+ s.async = true;
+ s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
+ (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
+ }
+ else {
+ d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
+ }
+})(window, document);
+//--><!]]></script></div><div id="footer">
+<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
+<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
+if (typeof(prettyPrint) !== 'undefined') {
+ prettyPrint();
+}
+//--><!]]></script>
+</body></html> \ No newline at end of file
diff --git a/docs/manual/mod/mod_unique_id.html.fr.utf8 b/docs/manual/mod/mod_unique_id.html.fr.utf8
new file mode 100644
index 0000000..4cb5b1e
--- /dev/null
+++ b/docs/manual/mod/mod_unique_id.html.fr.utf8
@@ -0,0 +1,272 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"><head>
+<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
+<!--
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ This file is generated from xml source: DO NOT EDIT
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ -->
+<title>mod_unique_id - Serveur HTTP Apache Version 2.4</title>
+<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
+<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
+<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
+<script src="../style/scripts/prettify.min.js" type="text/javascript">
+</script>
+
+<link href="../images/favicon.ico" rel="shortcut icon" /></head>
+<body>
+<div id="page-header">
+<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p>
+<p class="apache">Serveur HTTP Apache Version 2.4</p>
+<img alt="" src="../images/feather.png" /></div>
+<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
+<div id="path">
+<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">Serveur HTTP</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.4</a> &gt; <a href="./">Modules</a></div>
+<div id="page-content">
+<div id="preamble"><h1>Module Apache mod_unique_id</h1>
+<div class="toplang">
+<p><span>Langues Disponibles: </span><a href="../en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
+<a href="../fr/mod/mod_unique_id.html" title="Français">&nbsp;fr&nbsp;</a> |
+<a href="../ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
+<a href="../ko/mod/mod_unique_id.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
+</div>
+<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Fournit une variable d'environnement contenant un
+identifiant unique pour chaque requête</td></tr>
+<tr><th><a href="module-dict.html#Status">Statut:</a></th><td>Extension</td></tr>
+<tr><th><a href="module-dict.html#ModuleIdentifier">Identificateur de Module:</a></th><td>unique_id_module</td></tr>
+<tr><th><a href="module-dict.html#SourceFile">Fichier Source:</a></th><td>mod_unique_id.c</td></tr></table>
+<h3>Sommaire</h3>
+
+
+ <p>Ce module fournit un identifiant dont l'unicité est garantie
+ parmi "toutes" les requêtes sous des conditions très précises.
+ L'identifiant unique le sera aussi parmi plusieurs machines
+ appartenant à un cluster correctement configuré. L'identifiant est
+ affecté à la variable d'environnement <code>UNIQUE_ID</code> pour
+ chaque requête. Les identifiants uniques sont utiles pour diverses
+ raisons dont la nature se situe au delà de la portée de ce
+ document.</p>
+</div>
+<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><h3>Sujets</h3>
+<ul id="topics">
+<li><img alt="" src="../images/down.gif" /> <a href="#theory">Théorie</a></li>
+</ul><h3 class="directives">Directives</h3>
+<p>Ce module ne fournit aucune directive.</p>
+<h3>Traitement des bugs</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">Journal des modifications de httpd</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&amp;list_id=144532&amp;product=Apache%20httpd-2&amp;query_format=specific&amp;order=changeddate%20DESC%2Cpriority%2Cbug_severity&amp;component=mod_unique_id">Problèmes connus</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&amp;component=mod_unique_id">Signaler un bug</a></li></ul><h3>Voir aussi</h3>
+<ul class="seealso">
+<li><a href="#comments_section">Commentaires</a></li></ul></div>
+<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+<div class="section">
+<h2><a name="theory" id="theory">Théorie</a></h2>
+
+
+ <p>Tout d'abord un bref rappel de la manière dont le serveur Apache
+ fonctionne sous Unix (cette fonctionnalité n'étant actuellement pas
+ supportée sous Windows NT). Sous Unix, Apache crée plusieurs
+ processus enfants, ces derniers traitant les requêtes une par une.
+ Chaque processus enfant peut traiter plusieurs requêtes pendant sa
+ durée de vie. Dans le cadre de cette discussion, nous supposerons
+ que les différents processus enfants ne s'échangent pas de données
+ entre eux. Nous nous référerons aux processus enfants sous le nom de
+ <dfn>processus httpd</dfn>.</p>
+
+ <p>Votre site web est réparti entre une ou plusieurs machines dont
+ vous êtes l'administrateur, et que nous nommerons cluster de
+ serveurs. Chaque serveur peut exécuter plusieurs instances d'Apache.
+ L'ensemble de ces dernières sera considéré comme "l'Univers", et
+ sous certaines hypothèses, nous montrerons qu'il est possible dans
+ cet univers, de générer des identifiants uniques pour chaque
+ requête, sans pour autant nécessiter une communication importante
+ entre les différents serveurs du cluster.</p>
+
+ <p>Les machines de votre cluster doivent satisfaire ces conditions
+ (même si le cluster ne comporte qu'une machine, vous devez
+ synchroniser son horloge avec NTP) :</p>
+
+ <ul>
+ <li>Les temps des machines sont synchronisés via NTP ou tout autre
+ protocole de synchronisation du temps en réseau.</li>
+
+ <li>Les nom d'hôtes des machines sont tous différents, de façon à
+ ce que le module puisse recevoir une adresse IP différente pour
+ chaque machine du cluster en effectuant une recherche sur le nom
+ d'hôte.</li>
+ </ul>
+
+ <p>Au vu des caractéristiques actuelles du système d'exploitation,
+ nous supposerons que les pids (identifiants processus) sont codés
+ sur 32 bits. Si le système d'exploitation utilise plus de 32 bits
+ pour un pid, la correction est triviale mais doit être effectuée
+ dans le code.</p>
+
+ <p>Ces hypothèses posées, à un instant donné, nous pouvons
+ distinguer tout processus httpd sur toute machine du cluster de tous
+ les autres processus httpd. Pour ce faire, il suffit d'utiliser
+ l'adresse IP de la machine et le pid du processus httpd. Un
+ processus httpd peut traiter plusieurs requêtes simultanément si
+ vous utilisez un module MPM multi-threadé. Pour identifier les
+ threads, Apache httpd utilise en interne un index de threads. Ainsi,
+ afin de générer des identifiants uniques pour chaque requête, il
+ suffit d'effectuer une distinction en fonction du temps.</p>
+
+ <p>Pour déterminer le temps, nous utiliserons un repère de temps
+ Unix (les secondes écoulées depuis le 1er janvier 1970 UTC), et un
+ compteur 16 bits. La précision du repère de temps n'étant que d'une
+ seconde, le compteur va représenter 65536 valeurs par seconde. Le
+ quadruplet <em>(adresse IP, pid, repère de temps, compteur)</em> est
+ en mesure de distinguer 65536 requêtes par seconde par processus
+ httpd. Il peut cependant arriver que le même pid soit réutilisé au
+ cours du temps, et le compteur est là pour pallier cet
+ inconvénient.</p>
+
+ <p>Lorsqu'un processus enfant httpd est créé, le compteur est
+ initialisé avec (nombre de microsecondes actuel divisé par 10)
+ modulo 65536 (cette formule a été choisie pour éliminer certains
+ problème de variance avec les bits de poids faibles du compteur de
+ microsecondes sur certains systèmes). Lorsqu'un identifiant unique
+ est généré, le repère de temps utilisé est le moment où la requête
+ arrive sur le serveur web. Le compteur est incrémenté à chaque
+ création d'identifiant (et peut repasser à 0 lorsqu'il a atteint sa
+ valeur maximale).</p>
+
+ <p>Le noyau génère un pid pour chaque processus lors de sa création,
+ et le compteur de pid est réinitialisé à une certaine valeur
+ lorsqu'il a atteint sa valeur maximale (les pid sont codés sur 16
+ bits sous de nombreux Unixes, mais les systèmes les plus récents les
+ ont étendus à 32 bits). La même valeur de pid pourra donc être
+ réutilisée au cours du temps. Cependant, tant qu'elle n'est pas
+ réutilisée dans la même seconde, elle ne remet pas en cause
+ l'unicité de notre quadruplet. Nous supposerons donc que le système
+ ne créera pas plus de 65536 processus en une seconde (ce nombre peut
+ être de 32768 sous certains Unixes, mais même dans ce cas, on est en
+ général loin de cette situation).</p>
+
+ <p>Il est possible que le temps se répète pour une raison
+ quelconque.
+ Supposons par exemple que l'horloge système soit retardée et repasse
+ par un temps passé (ou bien, comme elle avançait, elle a été remise
+ à l'heure, et elle repasse par un temps futur). Dans ce cas, il peut
+ être facilement démontré que le couple pid/repère de temps peut être
+ réutilisé. Le choix de la formule d'initialisation du compteur a
+ été effectué dans l'intention de pallier ce problème. Notez qu'un
+ nombre vraiment aléatoire serait souhaitable pour initialiser le
+ compteur, mais il n'existe pas de tel nombre directement lisible sur
+ la plupart des systèmes (c'est à dire que vous ne pouvez pas
+ utiliser rand() car vous devez déclencher le générateur avec une
+ valeur unique, et vous ne pouvez pas utiliser le temps à cet effet
+ car celui-ci , au moins à la seconde près, s'est répété). Il ne
+ s'agit donc pas d'une défense parfaite.</p>
+
+ <p>Même si elle n'est pas parfaite, quel est le degré d'efficacité
+ de cette défense ? Supposons
+ qu'une de vos machines serve au plus 500 requêtes par seconde (ce
+ qui constitue une limite supérieure très raisonnable au moment où ce
+ document est écrit, car les systèmes ne se contentent en général pas
+ de débiter des fichiers statiques). Pour y parvenir, un certain nombre
+ de processus enfants sera nécessaire, qui dépendra du nombre de
+ clients simultanés présents. Mais soyons pessimiste et supposons
+ qu'un seul processus enfant soit capable de servir 500 requêtes par
+ secondes.
+ Il existe 1000 valeurs de démarrage possibles du compteur pour
+ lesquelles deux séquences de 500 requêtes puissent se recouvrir. Il
+ y a donc 1,5% de chance que le processus enfant répète une valeur de
+ compteur si le temps se répète (avec une résolution d'une seconde),
+ et l'unicité sera alors remise en cause. C'est cependant un exemple
+ très pessimiste, et avec les valeurs du monde réel, il y a bien
+ moins de chances que cela ne se produise. Si vous estimez que ceci a
+ tout de même quelque chances de se produire sur votre système, vous
+ pouvez migrer vers un compteur à 32 bits (en modifiant le code).</p>
+
+ <p>On pourrait supposer que ceci a plus de chance de se produire
+ lors du passage à l'heure d'hiver où l'horloge est "retardée". Cela
+ ne constitue cependant pas un problème car les temps pris en compte
+ ici sont des temps UTC, qui vont "toujours" de l'avant. Notez que
+ les Unixes à base de processeur x86 peuvent nécessiter une
+ configuration particulière pour que ceci soit vrai -- il doivent
+ être configurés pour assumer que l'horloge système est en UTC et
+ compenser de manière appropriée. Mais même dans ce cas, si vous
+ utilisez NTP, votre temps UTC sera correct peu après le
+ redémarrage.</p>
+
+
+ <p>La variable d'environnement <code>UNIQUE_ID</code> est construite
+ par codage du quadruplet de 144 bits (adresse IP sur 32 bits, pid
+ sur 32 bits, repère de temps sur 32 bits, compteur 16 bits et index
+ de threads sur 32 bits) en
+ utilisant l'alphabet <code>[A-Za-z0-9@-]</code> d'une manière
+ similaire à celle du codage MIME base64, et sa valeur se présente
+ sous la forme d'une chaîne de 24 caractères. L'alphabet MIME base64
+ est en fait <code>[A-Za-z0-9+/]</code> ; cependant, les caractères
+ <code>+</code> et <code>/</code> nécessitent un codage particulier
+ dans les URLs, ce qui rend leur utilisation peu commode. Toutes les
+ valeurs sont codées dans l'ordre des octets d'une adresse réseau de
+ façon à ce
+ que le codage soit comparable entre des architectures où l'ordre des
+ octets est différent. L'ordre réel de codage est : repère de temps,
+ adresse IP, pid, compteur. Cet ordre de codage possède un but
+ précis, mais il faut souligner que les applications n'ont aucun
+ intérêt à entrer dans les détails de ce codage. Les applications
+ doivent se contenter de traiter la variable <code>UNIQUE_ID</code>
+ comme un symbole opaque, qui peut être comparé avec d'autres
+ <code>UNIQUE_ID</code>s en ne testant que leur égalité.</p>
+
+ <p>L'ordre a été choisi de façon à ce qu'il soit possible de
+ modifier le codage dans le futur sans avoir à se préoccuper de
+ conflits éventuels avec une base de données de
+ <code>UNIQUE_ID</code>s existante. Les nouveaux codages doivent
+ conserver le repère de temps comme premier élément, et pour le
+ reste, utiliser les même alphabet et longueur en bits. Comme les
+ repères de temps constituent essentiellement un séquence croissante,
+ il suffit que toutes les machines du cluster arrêtent de traiter
+ toute requête dans la même <em>seconde repère</em>, et n'utilisent
+ alors plus l'ancien format de codage. Ensuite, elles peuvent
+ reprendre le traitement des requêtes en utilisant les nouveaux
+ codages.</p>
+
+ <p>Nous pensons que ceci apporte une solution relativement portable
+ au problème. Les
+ identifiants générés possèdent une durée de vie pratiquement infinie
+ car les identifiants futurs pourront être allongés selon les
+ besoins. Pratiquement aucune communication n'est requise entre les
+ machines du cluster (seule la synchronisation NTP est requise, ce
+ qui représente une charge très faible), et aucune communication
+ entre les processus httpd n'est nécessaire (la communication est
+ implicite et incluse dans le pid assigné par le noyau). Dans des
+ situations très spécifiques, l'identifiant peut être raccourci, mais
+ dans ce cas, d'avantage d'informations doivent être admises (par
+ exemple, les 32 bits de l'adresse IP sont excessifs pour la plupart
+ des sites, mais il n'existe pas de valeur de remplacement portable
+ plus courte).</p>
+</div>
+</div>
+<div class="bottomlang">
+<p><span>Langues Disponibles: </span><a href="../en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
+<a href="../fr/mod/mod_unique_id.html" title="Français">&nbsp;fr&nbsp;</a> |
+<a href="../ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
+<a href="../ko/mod/mod_unique_id.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
+</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Commentaires</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div>
+<script type="text/javascript"><!--//--><![CDATA[//><!--
+var comments_shortname = 'httpd';
+var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_unique_id.html';
+(function(w, d) {
+ if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
+ d.write('<div id="comments_thread"><\/div>');
+ var s = d.createElement('script');
+ s.type = 'text/javascript';
+ s.async = true;
+ s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
+ (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
+ }
+ else {
+ d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
+ }
+})(window, document);
+//--><!]]></script></div><div id="footer">
+<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Autorisé sous <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
+<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossaire</a> | <a href="../sitemap.html">Plan du site</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
+if (typeof(prettyPrint) !== 'undefined') {
+ prettyPrint();
+}
+//--><!]]></script>
+</body></html> \ No newline at end of file
diff --git a/docs/manual/mod/mod_unique_id.html.ja.utf8 b/docs/manual/mod/mod_unique_id.html.ja.utf8
new file mode 100644
index 0000000..bc164a2
--- /dev/null
+++ b/docs/manual/mod/mod_unique_id.html.ja.utf8
@@ -0,0 +1,248 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head>
+<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
+<!--
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ This file is generated from xml source: DO NOT EDIT
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ -->
+<title>mod_unique_id - Apache HTTP サーバ バージョン 2.4</title>
+<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
+<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
+<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
+<script src="../style/scripts/prettify.min.js" type="text/javascript">
+</script>
+
+<link href="../images/favicon.ico" rel="shortcut icon" /></head>
+<body>
+<div id="page-header">
+<p class="menu"><a href="../mod/">モジュール</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a></p>
+<p class="apache">Apache HTTP サーバ バージョン 2.4</p>
+<img alt="" src="../images/feather.png" /></div>
+<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
+<div id="path">
+<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP サーバ</a> &gt; <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> &gt; <a href="../">バージョン 2.4</a> &gt; <a href="./">モジュール</a></div>
+<div id="page-content">
+<div id="preamble"><h1>Apache モジュール mod_unique_id</h1>
+<div class="toplang">
+<p><span>翻訳済み言語: </span><a href="../en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
+<a href="../fr/mod/mod_unique_id.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
+<a href="../ja/mod/mod_unique_id.html" title="Japanese">&nbsp;ja&nbsp;</a> |
+<a href="../ko/mod/mod_unique_id.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
+</div>
+<div class="outofdate">この日本語訳はすでに古くなっている
+ 可能性があります。
+ 最近更新された内容を見るには英語版をご覧下さい。
+ </div>
+<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>それぞれのリクエストに対する一意な識別子の入った環境変数を
+提供する</td></tr>
+<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
+<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>unique_id_module</td></tr>
+<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_unique_id.c</td></tr></table>
+<h3>概要</h3>
+
+
+ <p>このモジュールは非常に制限された条件下で、
+ それぞれのリクエストに「すべて」のリクエストに対して
+ 一意に決まることが保証されている魔法のトークンを提供します。
+ この一意な識別子は、適切に設定されたクラスタでは複数の
+ マシンの間でさえも一意になります。それぞれのリクエストに対して環境変数
+ <code>UNIQUE_ID</code> に識別子が設定されます。
+ 一意な識別子が便利な理由はいろいろありますが、
+ このドキュメントの目的からは外れるため、ここでは説明しません。</p>
+</div>
+<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><h3>トピック</h3>
+<ul id="topics">
+<li><img alt="" src="../images/down.gif" /> <a href="#theory">理論</a></li>
+</ul><h3 class="directives">ディレクティブ</h3>
+<p>このモジュールにディレクティブはありません。</p>
+<h3>Bugfix checklist</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">httpd changelog</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&amp;list_id=144532&amp;product=Apache%20httpd-2&amp;query_format=specific&amp;order=changeddate%20DESC%2Cpriority%2Cbug_severity&amp;component=mod_unique_id">Known issues</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&amp;component=mod_unique_id">Report a bug</a></li></ul><h3>参照</h3>
+<ul class="seealso">
+<li><a href="#comments_section">コメント</a></li></ul></div>
+<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+<div class="section">
+<h2><a name="theory" id="theory">理論</a></h2>
+
+
+ <p>まずはじめに、Apache サーバが Unix
+ マシンでどのように動作をするかを簡単に説明します。
+ この機能は現時点では Windows NT ではサポートされていません。
+ Unix マシンでは Apache はいくつかの子プロセスを作成し、
+ その子プロセスが一つずつリクエストを処理します。それぞれの子プロセスは、
+ 生存期間中に複数のリクエストを扱うことができます。
+ この議論では子プロセス間では一切データを共有しないことにします。
+ 以後、この子プロセスのことを <dfn>httpd プロセス</dfn> と呼びます。</p>
+
+ <p>あなたのウェブサイトにはあなたが管理するいくつかのマシンがあるとします。
+ それらをまとめてクラスタと呼ぶことにします。それぞれのマシンは複数の
+ Apache を実行することもできます。
+ これらすべてをまとめたものが「宇宙」であると考えられます。
+ いくつかの仮定の下で、クラスタのマシン間がたくさん通信をすることなく、
+ この宇宙の中でそれぞれのリクエストに一意な識別子を生成できることを示します。
+ </p>
+
+ <p>クラスタにあるマシンは以下の要求を見たさなければなりません。
+ (マシンが一つだけだとしても、NTP で時計を合わせる方が良いです。)</p>
+
+ <ul>
+ <li>NTP や他のネットワーク上で時間を合わせるプロトコルによって
+ 各マシンの時間の同期が取られていること。</li>
+
+ <li>モジュールがホスト名を引いて違う IP
+ アドレスを受け取ることができるように、
+ クラスタのそれぞれのマシンのホスト名が違うこと。</li>
+ </ul>
+
+ <p>オペレーティングシステムにおいては、pid (プロセス ID) が
+ 32 ビットの範囲内であることを仮定します。オペレーティングシステムの
+ pid が 32 ビットを超える場合は、簡単な修正ではありますが、
+ コードを変更する必要があります。</p>
+
+ <p>これらの仮定が満たされていると、ある時点において、
+ クラスタ内のどのマシンのどの httpd
+ プロセスでも、一意に同定することができます。これはマシンの IP
+ アドレスと httpd プロセスの pid で十分に行なうことができます。
+ ですから、リクエストに一意な識別子を生成するためには、
+ 時刻を区別する必要があるだけです。</p>
+
+ <p>時刻を区別するために、Unix のタイムスタンプ (UTC の 1970 年
+ 1 月 1 日からの秒数) と、16 ビットのカウンタを使います。
+ タイムスタンプの粒度は一秒ですので、一秒間の 65536
+ までの値を表現するためにカウンタを使用します。四つの値
+ <em>( ip_addr, pid, time_stamp, counter )</em> で各 httpd
+ プロセスで一秒の間に 65536 リクエストを数えあげることができます。
+ 時間が経つと pid が再利用されるという問題がありますが、
+ この問題を解決するためにカウンタが使用されます。</p>
+
+ <p>httpd の子プロセスが作成されると、カウンタは
+ (その時点のマイクロ秒 ÷ 10) modulo 65536 で初期化されます
+ (この式はいくつかのシステムにある、マイクロ秒の
+ タイマの下位ビットが異なるという問題を解決するために選ばれました)。
+ 一意な識別子が生成されたとき、使用されるタイムスタンプは
+ ウェブサーバにリクエストが到着した時刻になります。
+ カウンタは識別子が生成されるたびに増加します
+ (あふれた場合は 0 に戻ります)。</p>
+
+ <p>カーネルはプロセスをフォークすると、それぞれのプロセスのために
+ pid を生成します。pid は繰り返されることが許可されています
+ (pid の値は多くの Unix では 16 ビットですが、新しいシステムでは
+ 32 ビットに拡張されています)。
+ ですから、ある程度の時間が経過すると同じ pid が再び使用されます。
+ しかし、一秒内に再使用されなければ、
+ 四つの値の一意性は保たれます。つまり、我々はシステムが一秒間
+ に 65536 個のプロセスを起動しないと仮定しています (いくつかの Unix
+ では 32768 プロセスですが、それですらほとんどあり得ないでしょう)。</p>
+
+ <p>何らかの理由で、同じ時刻が繰り返されたとしましょう。
+ つまり、システムの時計が狂っていて、もう一度過去の時刻になってしまった
+ (もしくは進みすぎていたときに、
+ 正しい時刻に戻したために再び将来の時刻になってしまった) とします。
+ この場合、pid とタイムスタンプが再使用されることが簡単に示されます。
+ カウンタ初期化用の関数は、この問題の回避を手助けしようと選択されています。
+ 本当はカウンタの初期化をするためにランダムな数字を使いたいのですが、
+ ほとんどのシステムでは簡単に使用できる数は無いことに注意してください
+ (<em>すなわち</em>、rand ()は使えません。rand () には seed
+ を与える必要があり、seed には時刻を使えません。一秒単位では、
+ その時刻はすでに繰り返されているからです)。
+ これは、完璧な対策ではありません。</p>
+
+ <p>この対策はどのくらい効果があるでしょうか?
+ ここでは、マシン群の中の一つは最大で一秒に 500
+ リクエストを扱うと仮定します (これを書いている時点では妥当な上限です。
+ 通常システムがすることは静的なファイルを取りだすだけではありませんから)。
+ それを行なうために、そのマシンは並行して来るクライアントの数に
+ 応じた数の子プロセスを要求します。
+ しかしながら、悲観的に考えて、一つの子プロセスが一秒に 500
+ リクエストを扱えるとします。そうすると、(一秒の精度において)
+ 時刻が同じ時を繰り返すと、この子プロセスがカウンタの値を再び使い、
+ 一意性が壊れる可能性が 1.5% あります。
+ これは非常に悲観的な例で、実世界の値では、ほとんど起こりそうにありません。
+ それでもこれが起こる可能性のあるようなシステムなら、
+ (プログラムコードを編集して)
+ カウンタを 32 ビットにするのが良いでしょう。
+ </p>
+
+ <p>サマータイムにより時計が「戻される」ことを気にしている人が
+ いるかもしれません。ここで使用される時間は UTC であり、
+ それは「常に」進むのでここでは問題になりません。x86 上の Unix
+ はこの条件を満たすために適切な設定が必要かもしれないことに
+ 注意してください。マザーボードの時計は UTC になっていて、
+ 他の時間はそこから適切に補正されることを仮定できるように
+ 設定されなければなりません。そのような場合でさえ、NTP
+ を使っているならばリブート後にすぐ正しい UTC の時間になるでしょう。</p>
+
+ <p><code>UNIQUE_ID</code> 環境変数は 112 ビット (32 ビット IP
+ アドレス、32 ビット pid, 32 ビットタイムスタンプ、16
+ ビットカウンタの四つの組) をアルファベット <code>[A-Za-z0-9@-]</code>
+ を用いて MIME の base64 符号化と同様の方法により符号化し、19
+ の文字を生成することにより作成されます。MIME の base64
+ のアルファベットは実際は <code>[A-Za-z0-9+/]</code> ですが、
+ <code>+</code> と <code>/</code> とは URL
+ では特別な符号化が必要なので、あまり望ましくありません。
+ 全ての値はネットワークバイトオーダで符号化されますので、
+ 符号は違ったバイトオーダのアーキテクチャ間で比較可能です。
+ 実際の符号化の順番は: タイムスタンプ、IP アドレス、pid,
+ カウンタです。この順には目的がありますが、
+ アプリケーションは符号を解析するべきではないことを強調しておきます。
+ アプリケーションは符号化された <code>UNIQUE_ID</code>
+ 全体を透過的なトークンとして扱うべきです。
+ <code>UNIQUE_ID</code> は他の <code>UNIQUE_ID</code>
+ との等価性を調べるためだけにのみ使用できます。</p>
+
+ <p>この順番は将来、既存の <code>UNIQUE_ID</code>
+ のデータベースとの衝突を心配することなく符号を変更することが
+ 可能になるように選択しています。
+ 新しい符号はタイムスタンプを最初の要素として残すのが望ましく、
+ それ以外は同じアルファベットとビット長を使うことができます。
+ タイムスタンプは本質的に増加系列ですので、
+ クラスタの全てのマシンがリクエストとサーバ機能を停止して、
+ 古い符号化方式を使用するのをやめる<em>フラグ秒</em>があれば十分です。
+ その後は、リクエストを再開し、
+ 新しい符号を発行することができるようになります。</p>
+
+ <p>我々はこれが、
+ この問題に対する比較的移植性の高い解決法だと考えています。
+ Windows NT のようなマルチスレッドのシステムに拡張することができますし、
+ 将来必要になればさらに増やすこともできます。
+ ID は必要に応じて長くすることができますので、生成された ID
+ は実質上、無限に有効です。また、クラスタのマシン間の通信も事実上必要なく
+ (NTP による同期のみが必要で、これはオーバヘッドはあまりありません)、httpd
+ プロセス間の通信も必要ありません (通信はカーネルにより割り当てられた
+ pid の値により暗黙の内に行なわています)。
+ さらに限られた状況下では、ID はさらに短くすることができますが、
+ より多くの情報を仮定する必要がでてきます (例えば、32 ビット
+ IP アドレスはどのサイトにおいても過剰な情報ですが、
+ それの代わりになる移植性のあるものはありません)。</p>
+</div>
+</div>
+<div class="bottomlang">
+<p><span>翻訳済み言語: </span><a href="../en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
+<a href="../fr/mod/mod_unique_id.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
+<a href="../ja/mod/mod_unique_id.html" title="Japanese">&nbsp;ja&nbsp;</a> |
+<a href="../ko/mod/mod_unique_id.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
+</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div>
+<script type="text/javascript"><!--//--><![CDATA[//><!--
+var comments_shortname = 'httpd';
+var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_unique_id.html';
+(function(w, d) {
+ if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
+ d.write('<div id="comments_thread"><\/div>');
+ var s = d.createElement('script');
+ s.type = 'text/javascript';
+ s.async = true;
+ s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
+ (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
+ }
+ else {
+ d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
+ }
+})(window, document);
+//--><!]]></script></div><div id="footer">
+<p class="apache">Copyright 2023 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
+<p class="menu"><a href="../mod/">モジュール</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
+if (typeof(prettyPrint) !== 'undefined') {
+ prettyPrint();
+}
+//--><!]]></script>
+</body></html> \ No newline at end of file
diff --git a/docs/manual/mod/mod_unique_id.html.ko.euc-kr b/docs/manual/mod/mod_unique_id.html.ko.euc-kr
new file mode 100644
index 0000000..1ee6e05
--- /dev/null
+++ b/docs/manual/mod/mod_unique_id.html.ko.euc-kr
@@ -0,0 +1,221 @@
+<?xml version="1.0" encoding="EUC-KR"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head>
+<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" />
+<!--
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ This file is generated from xml source: DO NOT EDIT
+ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ -->
+<title>mod_unique_id - Apache HTTP Server Version 2.4</title>
+<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
+<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
+<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
+<script src="../style/scripts/prettify.min.js" type="text/javascript">
+</script>
+
+<link href="../images/favicon.ico" rel="shortcut icon" /></head>
+<body>
+<div id="page-header">
+<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p>
+<p class="apache">Apache HTTP Server Version 2.4</p>
+<img alt="" src="../images/feather.png" /></div>
+<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
+<div id="path">
+<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.4</a> &gt; <a href="./"></a></div>
+<div id="page-content">
+<div id="preamble"><h1>ġ mod_unique_id</h1>
+<div class="toplang">
+<p><span> : </span><a href="../en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
+<a href="../fr/mod/mod_unique_id.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
+<a href="../ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
+<a href="../ko/mod/mod_unique_id.html" title="Korean">&nbsp;ko&nbsp;</a></p>
+</div>
+<div class="outofdate"> ֽ ƴմϴ.
+ ֱٿ ϼ.</div>
+<table class="module"><tr><th><a href="module-dict.html#Description">:</a></th><td> û ĺڸ ȯ溯
+Ѵ</td></tr>
+<tr><th><a href="module-dict.html#Status">:</a></th><td>Extension</td></tr>
+<tr><th><a href="module-dict.html#ModuleIdentifier">:</a></th><td>unique_id_module</td></tr>
+<tr><th><a href="module-dict.html#SourceFile">ҽ:</a></th><td>mod_unique_id.c</td></tr></table>
+<h3></h3>
+
+
+ <p>  Ư Ȳ "" û߿
+ ϵ ĺ(identifier) û Ѵ.
+ ĺڴ Ưϰ Ŭ ǻ͵
+ ߿ ϴ. û ȯ溯
+ <code>UNIQUE_ID</code> Ѵ. ĺڴ
+ 뵵 , Ѿ.</p>
+</div>
+<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><h3></h3>
+<ul id="topics">
+<li><img alt="" src="../images/down.gif" /> <a href="#theory">̷</a></li>
+</ul><h3 class="directives">þ</h3>
+<p> ⿡ þ ϴ.</p>
+<h3>Bugfix checklist</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">httpd changelog</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&amp;list_id=144532&amp;product=Apache%20httpd-2&amp;query_format=specific&amp;order=changeddate%20DESC%2Cpriority%2Cbug_severity&amp;component=mod_unique_id">Known issues</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&amp;component=mod_unique_id">Report a bug</a></li></ul><h3></h3>
+<ul class="seealso">
+<li><a href="#comments_section">Comments</a></li></ul></div>
+<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+<div class="section">
+<h2><a name="theory" id="theory">̷</a></h2>
+
+
+ <p> н ýۿ ġ  ϴ
+ 캸. Windows NT ʴ´.
+ н ġ ڽ , ڽ μ
+ ѹ û óѴ. ڽ ߿ û
+ óѴ. ⼭ ߿ ڽĵ ڷḦ
+ ʴ´ٴ ̴. ڽ httpd μ
+ Ѵ.</p>
+
+ <p> ǻͷ Ʈ Ѵٸ Ŭ(cluster)
+ θ. ǻʹ ġ ִ. ̵ θ
+ "" , ŬͿ ִ ǻ͵鰣 ž
+ û ֿ ĺڸ ִ.</p>
+
+ <p>ŬͿ ִ ǻʹ 䱸 ؾ Ѵ.
+ (ǻ͸ Ѵ븸 ϴ ǻ ð NTP ؾ
+ Ѵ.)</p>
+
+ <ul>
+ <li>ǻ ð NTP ٸ Ʈ ð ݰ
+ ȭȴ.</li>
+
+ <li>ǻ ȣƮ ٸ. ׷
+ ȣƮ ã ŬͿ ִ ǻ͸ ٸ
+ IP ּҸ ´.</li>
+ </ul>
+
+ <p>ü pid (μ id) 32Ʈ ٰ
+ Ѵ. ü pid 32Ʈ ̻ Ѵٸ
+ ڵ带 ؾ Ѵ.</p>
+
+ <p>̷ Ͽ 츮  Ŭ  ǻͿ
+ ִ  httpd μ ٸ httpd μ
+ ִ. ǻ IP ּҿ httpd μ pidε
+ ִ. ׷ û ڸ
+ ð ȴ.</p>
+
+ <p>ð ϱ н ð(timestamp, ǥؽ÷
+ 1970 1 1 ) 16Ʈ ī͸ Ѵ.
+ н ð ʴ̰, īʹ ʵ 65536
+ Ѵ. <em>( ip_addr, pid, time_stamp, counter )</em>
+  httpd μ ʵ 65536 û
+ ִ. ׷ īʹ pid ϴ ذؾ
+ Ѵ.</p>
+
+ <p>httpd ڽ īʹ ( и 10 )
+ 65536 ȴ. ( ý и ð
+ Ʈ ġʴ .)
+ ĺڸ 鶧 ϴ ð û
+ ð̴. īʹ ĺڸ 鶧 Ѵ (׸
+ ٽ Ѵ).</p>
+
+ <p>Ŀ μ ũҶ(fork) μ pid
+ Ҵϰ, pid ٽ ִ. (pid н
+ 16Ʈ, ֱ ý 32Ʈ Ȯߴ.) ׷ ð
+ pid ִ. ׷ ð pid
+ ʴ´ٸ ϴ. , 츮 ý
+ ʵ μ 65536 ̻ ʴ´ٰ Ѵ.
+ ( н 32768 ̻ μ pid
+ ߻ , ̰ Ͼ Ͱ ʴ.)</p>
+
+ <p>ð  ݺȴٰ غ. , ý
+ ð谡 ð ŷ ư (Ȥ ð谡 ʹ ռ
+ ùٷ 缳 ̷ ð Ǵ) .
+ pid ð ִ. ī ʱȭ
+ ذϷ ȵǾ. 츮 ڷ
+ ī͸ ʱȭϱ , ýۿ ̷
+ . (<em> </em>, seed ʿϱ⶧
+ rand() , ð ּ ̱⶧
+ ð seed .) Ϻ ذå .</p>
+
+ <p>׷ 󸶳 ? ǻ ϳ û
+ ʴ ִ 500 (ý Ϲ ϴ
+ ̻ ۾ ϹǷ
+ ̴.) Ѵٰ . ÿ 󸶸ŭ Ŭ̾Ʈ
+ óϴ° ڽ ȴ. ׷ 츮
+ ڽ û ʴ 500 ó ִٰ
+ Ѵ. pid ڽ 500 û ڽ
+ 500 û īͰ ĥ ִ ī ۰
+ 1000̴. ׷ (ʴ) ڽ īͰ ݺϿ
+ ϼ Ȯ 1.5%̴. ̰ ſ ̸,
+ ̷ . ׷ ýۿ ̷
+ ߻ ٸ (ҽ Ͽ) ī͸ 32Ʈ
+ .</p>
+
+ <p>ŸӶ ð谡 "ڷ " 𸥴.
+ ׷ ⼭ ϴ ð ǥؽ(UTC), ð
+ "׻" Ƿ . x86 н
+ ʿϴ. κ ð谡 UTC ϵ
+ ؾ Ѵ. ׷ NTP Ѵٸ
+ UTC ð ùٷ .</p>
+
+ <p>ȯ溯 <code>UNIQUE_ID</code> MIME base64 ڵ
+ 112Ʈ (32Ʈ IP ּ, 32Ʈ pid, 32Ʈ
+ ð, 16Ʈ ī) ĺ <code>[A-Za-z0-9@-]</code>
+ ǥѴ. MIME base64 ĺ
+ <code>[A-Za-z0-9+/]</code> <code>+</code>
+ <code>/</code> URL Ư ǹ̷ ϹǷ ߴ.
+ Ʈ Ʈ ڵϱ⶧ ٸ Ʈ
+ ϴ Űİ . ڵ
+ ð, IP ּ, pid, ī ̴. 
+ , α׷ ڵ Ͽ мϸ
+ ȵ Ѵ. α׷ ڵ <code>UNIQUE_ID</code>
+ ü ϰ, ٸ <code>UNIQUE_ID</code>
+ ִ.</p>
+
+ <p> <code>UNIQUE_ID</code> ͺ̽
+ 浹 ʰ ڵ ֵ ߴ.
+ ο ڵ ù ׸ ð ϰų, ĺ
+ Ʈ ̸ ִ. ð ⺻ ϴ ̹Ƿ
+ ŬͿ ִ ǻͰ û 񽺸 ߴϰ
+ ڵ ׸ ϱ <em> (flag second)</em>
+ ϴ. û ϰ ο ڵ
+ ִ.</p>
+
+ <p>츮 Ͽ ð
+ ذå̶ ϴ´. Windows NT Ƽ
+ ý Ȯ ְ, 뵵 Ȯ
+ ִ. ̷ ʿѸŭ ĺڸ ֱ⶧
+ ĺڴ ⺻ . ⺻
+ Ŭ ǻ͵ ̿ ʿ (ϰ
+ NTP ⸸ ʿϴ), httpd μ ̿ ŵ ʿ
+ (Ŀ οϴ pid Ϲ ̴). ſ Ư
+ Ȳ̶ ν ũ⸦
+ ؾ Ѵ. ( ,  Ʈ 32Ʈ IP ּ
+ ʿϰ ũ, ̸ ̴ Ȳ
+ ٸ.) </p>
+</div>
+</div>
+<div class="bottomlang">
+<p><span> : </span><a href="../en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
+<a href="../fr/mod/mod_unique_id.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
+<a href="../ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
+<a href="../ko/mod/mod_unique_id.html" title="Korean">&nbsp;ko&nbsp;</a></p>
+</div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div>
+<script type="text/javascript"><!--//--><![CDATA[//><!--
+var comments_shortname = 'httpd';
+var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_unique_id.html';
+(function(w, d) {
+ if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
+ d.write('<div id="comments_thread"><\/div>');
+ var s = d.createElement('script');
+ s.type = 'text/javascript';
+ s.async = true;
+ s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
+ (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
+ }
+ else {
+ d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
+ }
+})(window, document);
+//--><!]]></script></div><div id="footer">
+<p class="apache">Copyright 2023 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
+<p class="menu"><a href="../mod/"></a> | <a href="../mod/directives.html">þ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
+if (typeof(prettyPrint) !== 'undefined') {
+ prettyPrint();
+}
+//--><!]]></script>
+</body></html> \ No newline at end of file