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_file_cache - 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_file_cache</h1>
26<div class="toplang">
27<p><span>������ ���: </span><a href="/en/mod/mod_file_cache.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
28<a href="/ko/mod/mod_file_cache.html" title="Korean">&nbsp;ko&nbsp;</a></p>
29</div>
30<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�.
31            �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div>
32<table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>�޸��� ���� ���ϵ��� ij��</td></tr>
33<tr><th><a href="module-dict.html#Status">����:</a></th><td>Experimental</td></tr>
34<tr><th><a href="module-dict.html#ModuleIdentifier">����:</a></th><td>file_cache_module</td></tr>
35<tr><th><a href="module-dict.html#SourceFile">�ҽ�����:</a></th><td>mod_file_cache.c</td></tr></table>
36<h3>���</h3>
37
38
39    <div class="warning">
40      �� ����� �����ؼ� ����ؾ� �Ѵ�. <code class="module"><a href="/mod/mod_file_cache.html">mod_file_cache</a></code>��
41      ����Ͽ� ����Ʈ�� ������� ����� ���⶧���� �� ������
42      �IJ��� �б� �ٶ���.
43    </div>
44
45    <p>���� ������ �ʰ� ���� ��û�Ǵ� ������ <em>ij��</em>��
46    �����Ͽ� ���� ���ϸ� ���� �� �ִ�. <code class="module"><a href="/mod/mod_file_cache.html">mod_file_cache</a></code>��
47    ���� ��û�Ǵ� <em>����</em> ������ �ΰ��� ������� ij����
48    �����Ѵ�. ���� ���þ ����Ͽ� <code class="module"><a href="/mod/mod_file_cache.html">mod_file_cache</a></code>��
49    ������ ����(open) <code>mmap()</code>���� �ƴϸ� ������
50    ���� <em>���� �ڵ�</em>�� �������� �����Ѵ�. �� ��� ���
51    ������ �����ϱ����� �ʿ��� �۾��� �Ϻθ� (Ư�� ���� �����
52    �۾�) ������ ��û�� ������ �Ź� �ϴ� ��� ������ �����Ҷ�
53    �ѹ� �Ͽ� ���� ���ϰ� �����Ѵ�.</p>
54
55    <p>����: �� ����� CGI ���α׷��̳� Ư���� �����ڵ鷯��
56    ���� �����ϴ� ������ ���� �ӵ��� ���� �� ���. �� �����
57    ���� ����ġ core �����ڵ鷯�� �����ϴ� �Ϲ����Ͽ���
58    ���ȴ�.</p>
59
60    <p>�� ����� ����ġ 1.3�� �ִ� <code>mod_mmap_static</code>
61    ����� ����� Ȯ���� ����.</p>
62</div>
63<div id="quickview"><h3 class="directives">���þ��</h3>
64<ul id="toc">
65<li><img alt="" src="/images/down.gif" /> <a href="#cachefile">CacheFile</a></li>
66<li><img alt="" src="/images/down.gif" /> <a href="#mmapfile">MMapFile</a></li>
67</ul>
68<h3>����</h3>
69<ul id="topics">
70<li><img alt="" src="/images/down.gif" /> <a href="#using">mod_file_cache ����ϱ�</a></li>
71</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
72<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
73<div class="section">
74<h2><a name="using" id="using">mod_file_cache ����ϱ�</a></h2>
75
76    <p><code class="module"><a href="/mod/mod_file_cache.html">mod_file_cache</a></code>�� �ּ��� �������� <code class="directive"><a href="#mmapfile">MMapFile</a></code>�� <code class="directive"><a href="#cachefile">CacheFile</a></code> ���þ ����Ͽ�
77    ������ ���� ���ϵ��� ij���� �����Ѵ�.</p>
78
79    <p>��� �÷����� �� ���þ ��� �����ϴ� ���� �ƴϴ�.
80    ���� ���, ��������� ����ġ�� ���� <code class="directive"><a href="#mmapstatic">MMapStatic</a></code> ���þ
81    �������� ������, AIX ���� �ٸ� �÷����� �� ��θ� �����Ѵ�.
82    ���������ʴ� ���þ ����� ��� ���� ���� �α׿� ������
83    �����. ���������ʴ� ���þ ����ص� ������ ����������
84    ������ ij���� �������� �ʴ´�. �� ���þ ��� �����ϴ�
85    �÷����� ����Ѵٸ� � ����� �� ������ �����غ���.</p>
86
87    <h3>MMapFile ���þ�</h3>
88
89      <p><code class="module"><a href="/mod/mod_file_cache.html">mod_file_cache</a></code>�� <code class="directive"><a href="#mmapfile">MMapFile</a></code> ���þ��
90      ������ ���� ���ϵ��� <code>mmap()</code> �ý���ȣ����
91      ����Ͽ� �޸��� �����Ѵ�. �ֽ� ���н��� �ü�����
92      ���� �� �ý���ȣ���� ������, ��� �ü���� �ִ�. ��,
93      <code>mmap()</code>�� �� �ִ� ���� ũ��� ������ �ý�����
94      ������ �� �����Ƿ� �̸� �����غ��� ���� ����.</p>
95
96      <p>������ �����Ҷ��� ������Ҷ��� <code>mmap()</code>�Ѵ�.
97      �׷��� ���Ͻý��ۿ��� �ش� ������ �ϳ��� ����Ǹ� ������
98      �����<em>�ؾ�</em> �Ѵ� (<a href="/stopping.html">�ߴܰ�
99      �����</a> ���� ���). �ٽ� ���ؼ� ������ ����Ǿ�µ�
100      ������ ��������� ������ ������ �̻��ϰ� ��û�� ����������
101      ����. ���� ������ �����(unlink) �� �ڸ��� ���ο� ������
102      ����� ������� ������ �����ؾ� �Ѵ�. <code>rdist</code>��
103      <code>mv</code>�� ���� ��ټ��� ������ �̷� ������� �����Ѵ�.
104      �Ź� �߰��� ���ʿ��� <code>stat()</code> �˻簡 �ʿ��ϰ�
105      ����� ���Ҷ�� �� �ǵ��� ���ϱ⶧���� �� ����� ������
106      ��ȭ�� �����Ѵ�.</p>
107    
108
109    <h3>CacheFile ���þ�</h3>
110
111      <p><code class="module"><a href="/mod/mod_file_cache.html">mod_file_cache</a></code>�� <code class="directive"><a href="#cachefile">CacheFile</a></code> ���þ��
112      ���� ���þ ������ ����(�� ���ϵ�)�� ��� ������
113      <em>�ڵ�(handle)</em> Ȥ�� <em>���� �����(file descriptor)</em>��
114      ij���� �����Ѵ�. ������ ��û�ϸ� ������ ij������ �ڵ���
115      ã�Ƽ� ���� API <code>sendfile()</code>�� (�����������
116      <code>TransmitFile()</code>) �ѱ��.</p>
117
118      
119
120      <p>������ �����Ҷ��� ������Ҷ��� ���� �ڵ��� ij���Ѵ�.
121      �׷��� ���Ͻý��ۿ��� ij���� ������ �ϳ��� ����Ǹ�
122      ������ �����<em>�ؾ�</em> �Ѵ� (<a href="/stopping.html">�ߴܰ� �����</a> ���� ���).
123      �ٽ� ���ؼ� ������ ����Ǿ�µ� ������ ��������� ������
124      ������ �̻��ϰ� ��û�� ���������� ����. ���� ������
125      �����(unlink) �� �ڸ��� ���ο� ������ ����� �������
126      ������ �����ؾ� �Ѵ�. <code>rdist</code>�� <code>mv</code>��
127      ���� ��ټ��� ������ �̷� ������� �����Ѵ�.</p>
128    
129
130    <div class="note"><h3>����</h3>
131      <p>���丮�� ��� ������ ��������� ij���� �����ϴ� ���þ��
132      ���. ��� ������ ���� �غ���... <code class="directive"><a href="/mod/core.html#include">Include</a></code> ���þ ����Ͽ� ������
133      ���� ��ɾ �����Ѵ�:</p>
134
135      <div class="example"><p><code>
136        find /www/htdocs -type f -print \<br />
137        | sed -e 's/.*/mmapfile &amp;/' &gt; /www/conf/mmap.conf
138      </code></p></div>
139    </div>
140</div>
141<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
142<div class="directive-section"><h2><a name="CacheFile" id="CacheFile">CacheFile</a> <a name="cachefile" id="cachefile">���þ�</a></h2>
143<table class="directive">
144<tr><th><a href="directive-dict.html#Description">����:</a></th><td>���۽� ���� ���� �ڵ��� ij���Ѵ�</td></tr>
145<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>CacheFile <var>file-path</var> [<var>file-path</var>] ...</code></td></tr>
146<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������</td></tr>
147<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Experimental</td></tr>
148<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_file_cache</td></tr>
149</table>
150    <p><code class="directive">CacheFile</code> ���þ�� ������ �����Ҷ�
151    ���� ������ ����(open) ���ϵ��� �ڵ��� ij���� �����Ѵ�.
152    ���� ����� �ڵ����� ij���� ������ �ڵ��� �ݴ´�(close).
153    ���Ͻý��ۿ��� ������ ����Ǹ� ������ �ٽ� ij���ϱ�����
154    ������ ������ؾ� �Ѵ�.</p>
155
156    <p><var>file-path</var> �ƱԸ�Ʈ�� �����ض�. �ƱԸ�Ʈ��
157    ����ġ�� URL-���ϸ� ��ȯ �ڵ鷯�� ���� ���Ͻý��� ��ο�
158    ��Ȯ�� ��ġ�ؾ� �Ѵ�. �ѹ� �� ���ʿ��� <code>stat()</code>
159    �ý���ȣ���� �ʿ��ϱ⶧���� inode�� �ɺ���ũ <em>��</em>��
160    ��θ� ������ �� ���. �� ����� <code class="module"><a href="/mod/mod_alias.html">mod_alias</a></code>��
161    <code class="module"><a href="/mod/mod_rewrite.html">mod_rewrite</a></code>�� ���ۼ��� ���ϸ��� �ٷ� ��
162    �ֱ⵵ ��⵵ �ϴ�.</p>
163
164    <div class="example"><h3>����</h3><p><code>
165      CacheFile /usr/local/apache/htdocs/index.html
166    </code></p></div>
167
168</div>
169<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
170<div class="directive-section"><h2><a name="MMapFile" id="MMapFile">MMapFile</a> <a name="mmapfile" id="mmapfile">���þ�</a></h2>
171<table class="directive">
172<tr><th><a href="directive-dict.html#Description">����:</a></th><td>���۽� ���� ������ �޸��� �����Ѵ�</td></tr>
173<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>MMapFile <var>file-path</var> [<var>file-path</var>] ...</code></td></tr>
174<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������</td></tr>
175<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Experimental</td></tr>
176<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_file_cache</td></tr>
177</table>
178    <p><code class="directive">MMapFile</code> ���þ�� ������ �����Ҷ�
179    (������� ������ �ƱԸ�Ʈ�� ������) ���� ������ �޸���
180    �����Ѵ�(map). ���� ����� �ڵ����� ������ Ǭ��(unmap).
181    ���Ͻý��ۿ��� ������ ����Ǹ� ���ϵ��� �ٽ�
182    <code>mmap()</code>�ϱ����� �ּ��� ������ <code>HUP</code>�̳�
183    <code>USR1</code> �ñ׳��� ������ �Ѵ�.</p>
184
185    <p><var>file-path</var> �ƱԸ�Ʈ�� �����ض�. �ƱԸ�Ʈ��
186    ����ġ�� URL-���ϸ� ��ȯ �ڵ鷯�� ���� ���Ͻý��� ��ο�
187    ��Ȯ�� ��ġ�ؾ� �Ѵ�. �ѹ� �� ���ʿ��� <code>stat()</code>
188    �ý���ȣ���� �ʿ��ϱ⶧���� inode�� �ɺ���ũ <em>��</em>��
189    ��θ� ������ �� ���. �� ����� <code class="module"><a href="/mod/mod_alias.html">mod_alias</a></code>��
190    <code class="module"><a href="/mod/mod_rewrite.html">mod_rewrite</a></code>�� ���ۼ��� ���ϸ��� �ٷ� ��
191    �ֱ⵵ ��⵵ �ϴ�.</p>
192
193    <div class="example"><h3>����</h3><p><code>
194      MMapFile /usr/local/apache/htdocs/index.html
195    </code></p></div>
196
197</div>
198</div>
199<div class="bottomlang">
200<p><span>������ ���: </span><a href="/en/mod/mod_file_cache.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
201<a href="/ko/mod/mod_file_cache.html" title="Korean">&nbsp;ko&nbsp;</a></p>
202</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>
203<script type="text/javascript"><!--//--><![CDATA[//><!--
204var comments_shortname = 'httpd';
205var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_file_cache.html';
206(function(w, d) {
207    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
208        d.write('<div id="comments_thread"><\/div>');
209        var s = d.createElement('script');
210        s.type = 'text/javascript';
211        s.async = true;
212        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
213        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
214    }
215    else { 
216        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
217    }
218})(window, document);
219//--><!]]></script></div><div id="footer">
220<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>
221<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[//><!--
222if (typeof(prettyPrint) !== 'undefined') {
223    prettyPrint();
224}
225//--><!]]></script>
226</body></html>