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
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" />
12
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
14
<div id="page-header">
15
<p class="menu"><a href="../mod/">���</a> | <a href="../mod/directives.html">���þ��</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p>
16
<p class="apache">Apache HTTP Server Version 2.2</p>
17
<img alt="" src="../images/feather.gif" /></div>
18
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
20
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">���</a></div>
21
<div id="page-content">
22
<div id="preamble"><h1>����ġ ��� mod_unique_id</h1>
24
<p><span>������ ���: </span><a href="../en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English"> en </a> |
25
<a href="../ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
26
<a href="../ko/mod/mod_unique_id.html" title="Korean"> ko </a></p>
28
<div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�.
29
�ֱٿ� ����� ������ ���� ������ �����ϼ���.</div>
30
<table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>�� ��û���� ������ �ĺ��ڸ� ������ ȯ�溯����
32
<tr><th><a href="module-dict.html#Status">����:</a></th><td>Extension</td></tr>
33
<tr><th><a href="module-dict.html#ModuleIdentifier">����:</a></th><td>unique_id_module</td></tr>
34
<tr><th><a href="module-dict.html#SourceFile">�ҽ�����:</a></th><td>mod_unique_id.c</td></tr></table>
38
<p>�� ����� � Ư���� ��Ȳ������ "���" ��û�߿���
39
�����ϵ��� ����� �ĺ���(identifier)�� ��� ��û�� �����Ѵ�.
40
������ �� �ĺ��ڴ� Ư���ϰ� ������ Ŭ�������� ���� ��ǻ�͵�
41
�߿����� �����ϴ�. �� ��û���� ȯ�溯��
42
<code>UNIQUE_ID</code>�� �����Ѵ�. ������ �ĺ��ڴ� ��������
43
�뵵�� ����� �� ������, ������ �� ������ ������ �Ѿ��.</p>
45
<div id="quickview"><h3 class="directives">���þ��</h3>
46
<p>�� ���� ���þ �����ϴ�.</p>
49
<li><img alt="" src="../images/down.gif" /> <a href="#theory">�̷�</a></li>
51
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
53
<h2><a name="theory" id="theory">�̷�</a></h2>
56
<p>���� ���н� �ý��ۿ��� ����ġ ������ ��� �����ϴ���
57
������ ���캸��. Windows NT�� ���� �� ����� �������� �ʴ´�.
58
���н����� ����ġ�� ���� �ڽ��� �����, �ڽ� ���μ�����
59
�ѹ��� �� ��û�� ó���Ѵ�. �ڽ��� �����߿� ���� ��û��
60
ó���Ѵ�. ���⼭ �߿��� ���� �ڽĵ��� ���� �ڷḦ
61
�������� �ʴ´ٴ� ���̴�. ������ �ڽ��� httpd ���μ������
64
<p>���� ��ǻ�ͷ� ������Ʈ�� �����Ѵٸ� Ŭ������(cluster)���
65
�θ���. �� ��ǻ�ʹ� ���� ����ġ�� ������ �� �ִ�. �̵� ��θ�
66
"����"�� ����, Ŭ�����Ϳ� �ִ� ��ǻ�͵鰣�� ���� ��ž���
67
�� ��û���� ���ֿ��� ������ �ĺ��ڸ� ���� �� �ִ�.</p>
69
<p>Ŭ�����Ϳ� �ִ� ��ǻ�ʹ� ���� �䱸������ �����ؾ� �Ѵ�.
70
(��ǻ�� �Ѵ븸 ����ϴ��� ��ǻ�� �ð��� NTP�� �����ؾ�
74
<li>��ǻ�� �ð��� NTP�� �ٸ� ��Ʈ�� �ð� �������ݰ�
77
<li>��ǻ���� ȣ��Ʈ���� ��� �ٸ���. ���� �����
78
ȣ��Ʈ������ ã���� Ŭ�����Ϳ� �ִ� �� ��ǻ���� �ٸ�
82
<p>�ü������ pid (���μ��� id)�� 32��Ʈ�� ���ٰ�
83
�����Ѵ�. �ü���� pid�� 32��Ʈ �̻��� ����Ѵٸ� ����������
86
<p>�̷� �����Ͽ� �츮�� � �������� Ŭ�������� � ��ǻ�Ϳ�
87
�ִ� � httpd ���μ����� �ٸ� ��� httpd ���μ������
88
������ �� �ִ�. ��ǻ���� IP �ּҿ� httpd ���μ����� pid�����ε�
89
����� ������ �� �ִ�. ���� ��û�� ���� ������ �����ڸ�
90
������� �ð����� ������ ���� ������ �ȴ�.</p>
92
<p>�ð��� �����ϱ����� ���н� �ð�(timestamp, ���� ǥ�ؽ÷�
93
1970�� 1�� 1�� ���� ���� ��)�� 16��Ʈ ī���� ����Ѵ�.
94
���н� �ð��� �ʴ����̰�, ī���ʹ� �� �ʵ��� 65536����
95
�����Ѵ�. <em>( ip_addr, pid, time_stamp, counter )</em>
96
������ � httpd ���μ������� �� �ʵ��� 65536 ��û�� ������
97
�� �ִ�. ���� ī���ʹ� pid�� �����ϴ� ������ �ذ��ؾ�
100
<p>httpd �ڽ��� ����� ī���ʹ� ( ���� �и��� ������ 10 )��
101
65536���� ���� �������� �ȴ�. (��� �ý����� �и��� �ð�����
102
���� ��Ʈ�� ��ġ�����ʴ� ���������� �� ������ �������.)
103
������ �ĺ��ڸ� ���鶧 ����ϴ� �ð��� �������� ��û�� ����
104
�ð��̴�. ī���ʹ� �ĺ��ڸ� ���鶧���� �����Ѵ� (����
107
<p>Ŀ���� ���μ����� ��ũ�Ҷ�(fork) �� ���μ����� pid��
108
�Ҵ��ϰ�, pid�� �ٽ� ������ �� �ִ�. (pid�� ���� ���н�����
109
16��Ʈ������, �ֱ� �ý����� 32��Ʈ�� Ȯ���ߴ�.) ���� �ð���
110
������ ���� pid�� ������ �� �ִ�. ���� ���� �ð��� pid��
111
�������� �ʴ´ٸ� ���� ������ �����ϴ�. ��, �츮�� �ý�����
112
���ʵ��� ���μ����� 65536�� �̻� ������ �ʴ´ٰ� �����Ѵ�.
113
(� ���н������� 32768�� �̻� ���μ����� ����� pid ����
114
������ ���� �� ������, �̰������� �Ͼ �Ͱ��� �ʴ�.)</p>
116
<p>�ð��� � ���������� �ݺ��ȴٰ� �����غ���. ��, �ý���
117
�ð谡 ������ �ð��� ���ŷ� ���ư��� (Ȥ�� �ð谡 �ʹ� �ռ�����
118
�ùٷ� �缳������ �̷��� ���� �ð��� �Ǵ�) ����. �� ���
119
pid�� �ð��� ��� ������ �� �ִ�. ī������ �ʱ�ȭ ������
120
�� ������ �ذ��Ϸ��� ���ȵǾ���. �츮�� ���� ������ ���ڷ�
121
ī���� �ʱ�ȭ�ϱ� ��������, ���� �ý��ۿ��� �̷� ����
122
���� ���� �� ����. (<em>���� ���</em>, seed�� �ʿ��ϱ����
123
rand()�� ����� �� ����, �ð��� �ּ��� ���� �����̱����
124
�ð����� seed�� ����� �� ����.) �� �Ϻ��� �ذ�å�� ����.</p>
126
<p>�� �� ����� �� ��������? ��ǻ���� �ϳ��� ��û��
127
�ʴ� �ִ� 500�� (�ý����� �Ϲ������� ������ ������ �����ϴ�
128
�� �̻��� �۾��� �ϹǷ� �� ���� ���� �������� ����� ����
129
���̴�.) �����Ѵٰ� ��������. ���ÿ� ��ŭ�� Ŭ���̾�Ʈ��
130
ó���ϴ°��� ���� �ڽ��� ������ �����ȴ�. ���� �츮��
131
��������� �� �ڽ��� ��û�� �ʴ� 500�� ó���� �� �ִٰ�
132
�����Ѵ�. ������ pid�� ���� �ڽ��� 500�� ��û�� ���� �ڽ���
133
500�� ��û�� ī���Ͱ��� ��ĥ �� �ִ� ī���� ���۰� ������
134
1000���̴�. ���� (�ʴ�������) �ڽ��� ī���Ͱ��� �ݺ��Ͽ�
135
���ϼ��� ���� Ȯ���� 1.5%�̴�. �̰��� �ſ� ������� �����̸�,
136
���� �̷� ���� ����� �� ����. ���� �ý��ۿ��� �̷�
137
���� ���� �� ���ٸ� (�ҽ��� �����Ͽ�) ī���� 32��Ʈ��
140
<p>����Ÿ�Ӷ����� �ð谡 "�ڷ� ����" ���� ���������� ��.
141
���� ���⼭ ����ϴ� �ð��� ���� ǥ�ؽ�(UTC), �� �ð���
142
"��" ������ ���Ƿ� ������ ����. x86��� ���н�������
143
������ ������ �ʿ��ϴ�. ���κ��� �ð谡 UTC�� ����ϵ���
144
�����ؾ� �Ѵ�. ���� NTP�� ����Ѵٸ� ������� ���� ������
145
UTC �ð��� �ùٷ� �����.</p>
147
<p>ȯ�溯�� <code>UNIQUE_ID</code>�� MIME base64 ���ڵ���
148
����� ������� 112��Ʈ (32��Ʈ IP �ּ�, 32��Ʈ pid, 32��Ʈ
149
�ð�, 16��Ʈ ī����) ������ ���ĺ� <code>[A-Za-z0-9@-]</code>��
150
ǥ���Ѵ�. ���� MIME base64 ���ĺ���
151
<code>[A-Za-z0-9+/]</code>������ <code>+</code>��
152
<code>/</code>�� URL���� Ư���� �ǹ̷� ����ϹǷ� �����ߴ�.
153
��� ���� ��Ʈ�� ����Ʈ������ ���ڵ��ϱ���� �ٸ� ����Ʈ������
154
����ϴ� ��Ű���İ��� ���� ����. ���� ���ڵ� ������
155
�ð�, IP �ּ�, pid, ī���� �����̴�. �� �������� � ������
156
������, ���α��� ���ڵ� ������ �����Ͽ� ������ �м��ϸ�
157
�ȵ��� �����Ѵ�. ���α��� ���ڵ��� <code>UNIQUE_ID</code>
158
��ü�� �� ������ �����ϰ�, �ٸ� <code>UNIQUE_ID</code>��
159
���������� ���� �� �ִ�.</p>
161
<p>������ ������ ������ <code>UNIQUE_ID</code> �����ͺ��̽���
162
�浹�� ���������ʰ� ���ڵ��� ������ �� �ֵ��� �����ߴ�.
163
���ο� ���ڵ��� ù ������ �ð��� ����ϰų�, ���� ���ĺ���
164
��Ʈ ���̸� ����� ���� �ִ�. �ð��� �⺻������ �����ϴ� ���̹Ƿ�
165
Ŭ�����Ϳ� �ִ� ��� ��ǻ�Ͱ� ��û ���� �ߴ��ϰ� ����
166
���ڵ� ������ �� ����ϱ����� <em>���� ��(flag second)</em>������
167
����ϴ�. ���� ��û�� ����ϰ� ���ο� ���ڵ��� ������ ��
170
<p>�츮�� �� ����� �� ������ ���Ͽ� ��������� ���ð�����
171
�ذ�å�̶�� �ϴ´�. �� ����� Windows NT�� ���� ��Ƽ������
172
�ý������� Ȯ���� �� �ְ�, ������ �뵵�� ���� Ȯ���� ��
173
�ִ�. �̷��� �ʿ��Ѹ�ŭ �� �� �ĺ��ڸ� ���� �� �ֱ����
174
������ �ĺ��ڴ� �⺻������ ������ ������ ������. �⺻������
175
Ŭ�������� ��ǻ�͵� ���̿� ����� �ʿ���� (���ϰ� ����
176
NTP ���⸸ �ʿ��ϴ�), httpd ���μ��� ���̿� ��ŵ� �ʿ����
177
(Ŀ���� �ο��ϴ� pid���� �Ϲ����� ����̴�). �ſ� Ư����
178
��Ȳ�̶�� �ν��� ũ�⸦ ���� �� ������ �� ���� ������
179
�����ؾ� �Ѵ�. (���� ���, � ����Ʈ���� 32��Ʈ IP �ּ�
180
������ ���ʿ��ϰ� ũ����, �̸� ���̴� ����� ��Ȳ�� ����
184
<div class="bottomlang">
185
<p><span>������ ���: </span><a href="../en/mod/mod_unique_id.html" hreflang="en" rel="alternate" title="English"> en </a> |
186
<a href="../ja/mod/mod_unique_id.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
187
<a href="../ko/mod/mod_unique_id.html" title="Korean"> ko </a></p>
188
</div><div id="footer">
189
<p class="apache">Copyright 2006 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>
190
<p class="menu"><a href="../mod/">���</a> | <a href="../mod/directives.html">���þ��</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p></div>
b'\\ No newline at end of file'