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_example - 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="<-" alt="<-" src="/images/left.gif" /></a></div> 22<div id="path"> 23<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> 24<div id="page-content"> 25<div id="preamble"><h1>����ġ ��� mod_example</h1> 26<div class="toplang"> 27<p><span>������ ���: </span><a href="/en/mod/mod_example.html" hreflang="en" rel="alternate" title="English"> en </a> | 28<a href="/ko/mod/mod_example.html" title="Korean"> ko </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>����ġ ��� API�� �����Ѵ�</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>example_module</td></tr> 35<tr><th><a href="module-dict.html#SourceFile">�ҽ�����:</a></th><td>mod_example.c</td></tr></table> 36<h3>���</h3> 37 38 <p>����ġ ������ <code>modules/experimental</code> ���丮�� 39 �ִ� ���ϵ��� ����ġ API�� ����Ͽ� ����� �ۼ��Ϸ��� ������� 40 �������� ������.</p> 41 42 <p><code>mod_example.c</code>�� ��� �ݹ�(callback) ������ 43 ȣ�� ������ �����ϴ� �����̴�. ����� �� �� ��� �ݹ��� 44 ������ �ʿ䰡 ���. ��� ���ݴ��!</p> 45 46 <p>example ����� ������ �����ϴ� ����̴�. �� ����� ������ 47 �����ϰ� Ư�� ��ġ�� "example-handler" �ڵ鷯�� �Ҵ��Ͽ� 48 �װ��� ����¡�ϸ� example ����� ���� �ݹ��� Ȯ���� �� 49 �ִ�.</p> 50</div> 51<div id="quickview"><h3 class="directives">���þ��</h3> 52<ul id="toc"> 53<li><img alt="" src="/images/down.gif" /> <a href="#example">Example</a></li> 54</ul> 55<h3>����</h3> 56<ul id="topics"> 57<li><img alt="" src="/images/down.gif" /> <a href="#compiling">example ��� �������ϱ�</a></li> 58<li><img alt="" src="/images/down.gif" /> <a href="#using"><code>mod_example</code> ��� ����ϱ�</a></li> 59</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> 60<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 61<div class="section"> 62<h2><a name="compiling" id="compiling">example ��� �������ϱ�</a></h2> 63 64 <p>������ example ����� �����Ϸ��� ���� ������ ��ģ��:</p> 65 66 <ol> 67 <li> 68 <code>--enable-example</code> �ɼǰ� �Բ� 69 <code>configure</code>�� �����Ѵ�.</li> 70 71 <li>������ �������Ѵ� ("<code>make</code>"�� �����Ѵ�).</li> 72 </ol> 73 74 <p>�ڽ��� ���� ����� �߰��Ϸ���:</p> 75 76 <ol class="up-A"> 77 <li><code>cp modules/experimental/mod_example.c 78 modules/new_module/<em>mod_myexample.c</em></code></li> 79 80 <li>������ �����Ѵ�.</li> 81 82 <li><code>modules/new_module/config.m4</code> ������ �����. 83 <ol> 84 <li><code>APACHE_MODPATH_INIT(new_module)</code>�� 85 �߰��Ѵ�.</li> 86 <li><code>modules/experimental/config.m4</code> ���Ͽ��� 87 "example"�� �ִ� APACHE_MODULE ���� �����ؿ´�.</li> 88 <li>ù��° �ƱԸ�Ʈ "example"�� <em>myexample</em>�� 89 �����Ѵ�.</li> 90 <li>�ι�° �ƱԸ�Ʈ �ڸ��� �ڽ��� ���� �� ���� 91 ������ ������ ��´�. <code>configure --help</code>�� 92 �����ϸ� ��� ����� ������ �����ش�.</li> 93 <li>����� �������Ҷ� Ư���� C �����Ϸ� �ɼ�, ��Ŀ 94 �ɼ�, ���̺귯���� �ʿ��ϸ� ���� CFLAGS, LDFLAGS, 95 LIBS�� �߰��Ѵ�. modules ���丮�� �ִ� �ٸ� 96 <code>config.m4</code> ���ϵ��� ����϶�.</li> 97 <li><code>APACHE_MODPATH_FINISH</code>�� �߰��Ѵ�.</li> 98 </ol> 99 </li> 100 101 <li><code>module/new_module/Makefile.in</code> ������ 102 �����. ����� �������ϴµ� Ư���� ��ɾ �ʿ��ٸ�, 103 ���Ͽ� <code>include $(top_srcdir)/build/special.mk</code>�� 104 �־ �ȴ�.</li> 105 106 <li>�ֻ��� ���丮���� /buildconf �� �����Ѵ�.</li> 107 108 <li>--enable-myexample �ɼ��� ����Ͽ� ������ �������Ѵ�</li> 109 110 </ol> 111</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 112<div class="section"> 113<h2><a name="using" id="using"><code>mod_example</code> ��� ����ϱ�</a></h2> 114 115 <p>example ����� ����Ϸ��� <code>httpd.conf</code> ���Ͽ� 116 ������ ���� ������ �߰��϶�:</p> 117<div class="example"><p><code> 118 <Location /example-info><br /> 119 SetHandler example-handler<br /> 120 </Location> 121</code></p></div> 122 123 <p>�ƴϸ� <a href="core.html#accessfilename"><code>.htaccess</code></a> 124 ���Ͽ� ������ ���� ������ �߰��ϰ�, �� ��ġ���� "test.example" 125 ���� ������ ��û�϶�:</p> 126<div class="example"><p><code> 127 AddHandler example-handler .example 128</code></p></div> 129 130 <p>������ ������� �� �� ��ġ�� ����¡�ϸ� �տ��� ���� 131 ������ ���Ե� ���̴�.</p> 132</div> 133<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 134<div class="directive-section"><h2><a name="Example" id="Example">Example</a> <a name="example" id="example">���þ�</a></h2> 135<table class="directive"> 136<tr><th><a href="directive-dict.html#Description">����:</a></th><td>����ġ ��� API�� �����ϱ����� ���� ���þ�</td></tr> 137<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>Example</code></td></tr> 138<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ, directory, .htaccess</td></tr> 139<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Experimental</td></tr> 140<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_example</td></tr> 141</table> 142 <p><code class="directive">Example</code> ���þ�� example ����� 143 �����ڵ鷯�� ������ ������ ������ ���θ� �����Ѵ�. �� ���þ�� 144 �ƱԸ�Ʈ�� �����ʴ´�. example �����ڵ鷯�� ����� URL�� 145 �����ϸ� ���� ��û�� �����ϱ����� ���ȿ� �Լ����� ��� 146 ���� � ��� �Ҹ����� �� �� �ִ�. �� ���þ��� ȿ��� 147 "<code>Example directive declared here: YES/NO</code>"�� 148 Ȯ���� �� �ִ�.</p> 149 150</div> 151</div> 152<div class="bottomlang"> 153<p><span>������ ���: </span><a href="/en/mod/mod_example.html" hreflang="en" rel="alternate" title="English"> en </a> | 154<a href="/ko/mod/mod_example.html" title="Korean"> ko </a></p> 155</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&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> 156<script type="text/javascript"><!--//--><![CDATA[//><!-- 157var comments_shortname = 'httpd'; 158var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_example.html'; 159(function(w, d) { 160 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 161 d.write('<div id="comments_thread"><\/div>'); 162 var s = d.createElement('script'); 163 s.type = 'text/javascript'; 164 s.async = true; 165 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 166 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 167 } 168 else { 169 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 170 } 171})(window, document); 172//--><!]]></script></div><div id="footer"> 173<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> 174<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[//><!-- 175if (typeof(prettyPrint) !== 'undefined') { 176 prettyPrint(); 177} 178//--><!]]></script> 179</body></html>