1<?xml version="1.0" encoding="EUC-KR"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
4        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5              This file is generated from xml source: DO NOT EDIT
6        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7      -->
8<title>mod_unique_id - Apache HTTP Server</title>
9<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11<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" />
12<script src="/style/scripts/prettify.js" type="text/javascript">
13</script>
14
15<link href="/images/favicon.ico" rel="shortcut icon" /></head>
16<body>
17<div id="page-header">
18<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>
19<p class="apache">Apache HTTP Server Version 2.2</p>
20<img alt="" src="/images/feather.gif" /></div>
21<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
22<div id="path">
23<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.2</a> &gt; <a href="./">���</a></div>
24<div id="page-content">
25<div id="preamble"><h1>����ġ ��� mod_unique_id</h1>
26<div class="toplang">
27<p><span>������ ���: </span><a href="/en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
28<a href="/ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
29<a href="/ko/mod/mod_unique_id.html" title="Korean">&nbsp;ko&nbsp;</a></p>
30</div>
31<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�.
32            �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div>
33<table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>�� ��û���� ������ �ĺ��ڸ� ������ ȯ�溯����
34�����Ѵ�</td></tr>
35<tr><th><a href="module-dict.html#Status">����:</a></th><td>Extension</td></tr>
36<tr><th><a href="module-dict.html#ModuleIdentifier">����:</a></th><td>unique_id_module</td></tr>
37<tr><th><a href="module-dict.html#SourceFile">�ҽ�����:</a></th><td>mod_unique_id.c</td></tr></table>
38<h3>���</h3>
39
40
41    <p>�� ����� � Ư���� ��Ȳ������ "���" ��û�߿���
42    �����ϵ��� ����� �ĺ���(identifier)�� ��� ��û�� �����Ѵ�.
43    ������ �� �ĺ��ڴ� Ư���ϰ� ������ Ŭ�������� ���� ��ǻ�͵�
44    �߿����� �����ϴ�. �� ��û���� ȯ�溯��
45    <code>UNIQUE_ID</code>�� �����Ѵ�. ������ �ĺ��ڴ� ��������
46    �뵵�� ����� �� ������, ������ �� ������ ������ �Ѿ��.</p>
47</div>
48<div id="quickview"><h3 class="directives">���þ��</h3>
49<p>�� ��⿡�� ���þ ����ϴ�.</p>
50<h3>����</h3>
51<ul id="topics">
52<li><img alt="" src="/images/down.gif" /> <a href="#theory">�̷�</a></li>
53</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
54<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
55<div class="section">
56<h2><a name="theory" id="theory">�̷�</a></h2>
57    
58
59    <p>���� ���н� �ý��ۿ��� ����ġ ������ ��� �����ϴ���
60    ������ ���캸��. Windows NT�� ���� �� ����� �������� �ʴ´�.
61    ���н����� ����ġ�� ���� �ڽ��� �����, �ڽ� ���μ�����
62    �ѹ� �� ��û�� ó���Ѵ�. �ڽ��� �����߿� ���� ��û��
63    ó���Ѵ�. ���⼭ �߿��� ���� �ڽĵ��� ���� �ڷḦ
64    �������� �ʴ´ٴ� ���̴�. ������ �ڽ��� httpd ���μ������
65    �Ѵ�.</p>
66
67    <p>���� ��ǻ�ͷ� ������Ʈ�� �����Ѵٸ� Ŭ������(cluster)���
68    �θ���. �� ��ǻ�ʹ� ���� ����ġ�� ������ �� �ִ�. �̵� ��θ�
69    "����"�� ����, Ŭ�����Ϳ� �ִ� ��ǻ�͵鰣�� ���� ��ž���
70    �� ��û���� ���ֿ��� ������ �ĺ��ڸ� ���� �� �ִ�.</p>
71
72    <p>Ŭ�����Ϳ� �ִ� ��ǻ�ʹ� ���� �䱸������ �����ؾ� �Ѵ�.
73    (��ǻ�͸� �Ѵ븸 ����ϴ��� ��ǻ�� �ð��� NTP�� �����ؾ�
74    �Ѵ�.)</p>
75
76    <ul>
77      <li>��ǻ�� �ð��� NTP�� �ٸ� ��Ʈ�� �ð� �������ݰ�
78      ����ȭ�ȴ�.</li>
79
80      <li>��ǻ���� ȣ��Ʈ���� ��� �ٸ���. �׷��� �����
81      ȣ��Ʈ������ ã���� Ŭ�����Ϳ� �ִ� �� ��ǻ�͸��� �ٸ�
82      IP �ּҸ� ��´�.</li>
83    </ul>
84
85    <p>�ü������ pid (���μ��� id)�� 32��Ʈ�� ���ٰ�
86    �����Ѵ�. �ü���� pid�� 32��Ʈ �̻��� ����Ѵٸ� ����������
87    �ڵ带 �����ؾ� �Ѵ�.</p>
88
89    <p>�̷� �����Ͽ� �츮�� � �������� Ŭ�������� � ��ǻ�Ϳ�
90    �ִ� � httpd ���μ����� �ٸ� ��� httpd ���μ������
91    ������ �� �ִ�. ��ǻ���� IP �ּҿ� httpd ���μ����� pid�����ε�
92    ����� ������ �� �ִ�. �׷��� ��û�� ���� ������ �����ڸ�
93    ������� �ð����� ������ ���� ������ �ȴ�.</p>
94
95    <p>�ð��� �����ϱ����� ���н� �ð�(timestamp, ���� ǥ�ؽ÷�
96    1970�� 1�� 1�� ���� ���� ��)�� 16��Ʈ ī���͸� ����Ѵ�.
97    ���н� �ð��� �ʴ����̰�, ī���ʹ� �� �ʵ��� 65536����
98    �����Ѵ�. <em>( ip_addr, pid, time_stamp, counter )</em>
99    ������ � httpd ���μ������� �� �ʵ��� 65536 ��û�� ������
100    �� �ִ�. �׷��� ī���ʹ� pid�� �����ϴ� ������ �ذ��ؾ�
101    �Ѵ�.</p>
102
103    <p>httpd �ڽ��� ����� ī���ʹ� ( ���� �и��� ������ 10 )��
104    65536���� ���� �������� �ȴ�. (��� �ý����� �и��� �ð�����
105    ���� ��Ʈ�� ��ġ�����ʴ� ���������� �� ����� ������.)
106    ������ �ĺ��ڸ� ���鶧 ����ϴ� �ð��� �������� ��û�� ����
107    �ð��̴�. ī���ʹ� �ĺ��ڸ� ���鶧���� �����Ѵ� (�׸���
108    �ٽ� �����Ѵ�).</p>
109
110    <p>Ŀ���� ���μ����� ��ũ�Ҷ�(fork) �� ���μ����� pid��
111    �Ҵ��ϰ�, pid�� �ٽ� ������ �� �ִ�. (pid�� ���� ���н�����
112    16��Ʈ������, �ֱ� �ý����� 32��Ʈ�� Ȯ���ߴ�.) �׷��� �ð���
113    ������ ���� pid�� ������ �� �ִ�. �׷��� ���� �ð��� pid��
114    �������� �ʴ´ٸ� ���� ������ �����ϴ�. ��, �츮�� �ý�����
115    ���ʵ��� ���μ����� 65536�� �̻� ������ �ʴ´ٰ� �����Ѵ�.
116    (� ���н������� 32768�� �̻� ���μ����� ����� pid ����
117    ������ �߻��� �� ������, �̰������� �Ͼ �Ͱ��� �ʴ�.)</p>
118
119    <p>�ð��� � ���������� �ݺ��ȴٰ� �����غ���. ��, �ý���
120    �ð谡 ������ �ð��� ��ŷ� ���ư��� (Ȥ�� �ð谡 �ʹ� �ռ�����
121    �ùٷ� �缳������ �̷��� ���� �ð��� �Ǵ�) ����. �� ���
122    pid�� �ð��� ��� ������ �� �ִ�. ī������ �ʱ�ȭ �����
123    �� ������ �ذ��Ϸ��� ��ȵǾ��. �츮�� ���� ������ ���ڷ�
124    ī���͸� �ʱ�ȭ�ϱ� ��������, ���� �ý��ۿ��� �̷� ����
125    ���� ���� �� ���. (<em>���� ���</em>, seed�� �ʿ��ϱ⶧����
126    rand()�� ����� �� ���, �ð��� �ּ��� ���� �����̱⶧����
127    �ð����� seed�� ����� �� ���.) �� �Ϻ��� �ذ�å�� ���.</p>
128
129    <p>�׷� �� ����� ���� ��������? ��ǻ���� �ϳ��� ��û��
130    �ʴ� �ִ� 500�� (�ý����� �Ϲ������� ������ ������ ����ϴ�
131    �� �̻��� �۾��� �ϹǷ� �� ���� ���� �������� ����� ����
132    ���̴�.) �����Ѵٰ� ��������. ���ÿ� ����ŭ�� Ŭ���̾�Ʈ��
133    ó���ϴ°��� ��� �ڽ��� ������ �����ȴ�. �׷��� �츮��
134    ��������� �� �ڽ��� ��û�� �ʴ� 500�� ó���� �� �ִٰ�
135    �����Ѵ�. ������ pid�� ���� �ڽ��� 500�� ��û�� ���� �ڽ���
136    500�� ��û�� ī���Ͱ��� ��ĥ �� �ִ� ī���� ���۰� ������
137    1000���̴�. �׷��� (�ʴ�������) �ڽ��� ī���Ͱ��� �ݺ��Ͽ�
138    ���ϼ��� ���� Ȯ���� 1.5%�̴�. �̰��� �ſ� ������� �����̸�,
139    ���� �̷� ���� ����� �� ����. �׷��� �ý��ۿ��� �̷�
140    ���� �߻��� �� ���ٸ� (�ҽ��� �����Ͽ�) ī���͸� 32��Ʈ��
141    ������.</p>
142
143    <p>����Ÿ�Ӷ����� �ð谡 "�ڷ� ����" ���� ���������� ����.
144    �׷��� ���⼭ ����ϴ� �ð��� ���� ǥ�ؽ�(UTC), �� �ð���
145    "�׻�" ������ ���Ƿ� ������ ���. x86��� ���н�������
146    ������ ������ �ʿ��ϴ�. ���κ��� �ð谡 UTC�� ����ϵ���
147    �����ؾ� �Ѵ�. �׷��� NTP�� ����Ѵٸ� ������� ���� ������
148    UTC �ð��� �ùٷ� �����.</p>
149
150    <p>ȯ�溯�� <code>UNIQUE_ID</code>�� MIME base64 ���ڵ��
151    ����� ������� 112��Ʈ (32��Ʈ IP �ּ�, 32��Ʈ pid, 32��Ʈ
152    �ð�, 16��Ʈ ī����) ������ ���ĺ� <code>[A-Za-z0-9@-]</code>��
153    ǥ���Ѵ�. ���� MIME base64 ���ĺ���
154    <code>[A-Za-z0-9+/]</code>������ <code>+</code>��
155    <code>/</code>�� URL���� Ư���� �ǹ̷� ����ϹǷ� �����ߴ�.
156    ��� ���� ��Ʈ�� ����Ʈ��� ���ڵ��ϱ⶧���� �ٸ� ����Ʈ��
157    ����ϴ� ��Ű���İ��� ���� ����. ���� ���ڵ� ���
158    �ð�, IP �ּ�, pid, ī���� ���̴�. �� ���� � ������
159    ������, ���α׷��� ���ڵ� �� �����Ͽ� ������ �м��ϸ�
160    �ȵ��� �����Ѵ�. ���α׷��� ���ڵ�� <code>UNIQUE_ID</code>
161    ��ü�� �� ������ ���ϰ�, �ٸ� <code>UNIQUE_ID</code>��
162    ���������� ���� �� �ִ�.</p>
163
164    <p>��� ������ ������ <code>UNIQUE_ID</code> �����ͺ��̽���
165    �浹�� ���������ʰ� ���ڵ��� ������ �� �ֵ��� ����ߴ�.
166    ���ο� ���ڵ��� ù �׸����� �ð��� ����ϰų�, ���� ���ĺ���
167    ��Ʈ ���̸� ����� ���� �ִ�. �ð��� �⺻������ �����ϴ� ���̹Ƿ�
168    Ŭ�����Ϳ� �ִ� ��� ��ǻ�Ͱ� ��û ������ �ߴ��ϰ� ����
169    ���ڵ� ����� �׸� ����ϱ����� <em>���� ��(flag second)</em>������
170    ����ϴ�. ���� ��û�� ����ϰ� ���ο� ���ڵ��� ������ ��
171    �ִ�.</p>
172
173    <p>�츮�� �� ����� �� ������ ���Ͽ� ��������� ���ð�����
174    �ذ�å�̶�� �ϴ´�. �� ����� Windows NT�� ���� ��Ƽ������
175    �ý������� Ȯ���� �� �ְ�, ������ �뵵�� ��� Ȯ���� ��
176    �ִ�. �̷��� �ʿ��Ѹ�ŭ �� �� �ĺ��ڸ� ���� �� �ֱ⶧����
177    ���� �ĺ��ڴ� �⺻������ ������ ������ �����. �⺻������
178    Ŭ�������� ��ǻ�͵� ���̿� ����� �ʿ��� (���ϰ� ����
179    NTP ���⸸ �ʿ��ϴ�), httpd ���μ��� ���̿� ��ŵ� �ʿ���
180    (Ŀ���� �ο��ϴ� pid���� �Ϲ����� ����̴�). �ſ� Ư����
181    ��Ȳ�̶�� �ν��� ũ�⸦ ���� �� ������ �� ���� ������
182    �����ؾ� �Ѵ�. (���� ���, � ����Ʈ���� 32��Ʈ IP �ּ�
183    ������ ���ʿ��ϰ� ũ����, �̸� ���̴� ����� ��Ȳ�� ���
184    �ٸ���.) </p>
185</div>
186</div>
187<div class="bottomlang">
188<p><span>������ ���: </span><a href="/en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
189<a href="/ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
190<a href="/ko/mod/mod_unique_id.html" title="Korean">&nbsp;ko&nbsp;</a></p>
191</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 again 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 Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
192<script type="text/javascript"><!--//--><![CDATA[//><!--
193var comments_shortname = 'httpd';
194var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_unique_id.html';
195(function(w, d) {
196    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
197        d.write('<div id="comments_thread"><\/div>');
198        var s = d.createElement('script');
199        s.type = 'text/javascript';
200        s.async = true;
201        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
202        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
203    }
204    else { 
205        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
206    }
207})(window, document);
208//--><!]]></script></div><div id="footer">
209<p class="apache">Copyright 2013 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>
210<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[//><!--
211if (typeof(prettyPrint) !== 'undefined') {
212    prettyPrint();
213}
214//--><!]]></script>
215</body></html>