home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 November / CMCD1104.ISO / Software / Complet / Apache / apache_2.0.52-win32-x86-no_ssl.msi / Data.Cab / F277729_sections.xml.ko < prev    next >
Extensible Markup Language  |  2004-05-07  |  17KB  |  460 lines

  1. <?xml version="1.0" encoding="EUC-KR" ?>
  2. <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
  3. <?xml-stylesheet type="text/xsl" href="./style/manual.ko.xsl"?>
  4. <!-- English Revision: 1.3.2.7 -->
  5.  
  6. <!--
  7.  Copyright 2003-2004 The Apache Software Foundation
  8.  
  9.  Licensed under the Apache License, Version 2.0 (the "License");
  10.  you may not use this file except in compliance with the License.
  11.  You may obtain a copy of the License at
  12.  
  13.      http://www.apache.org/licenses/LICENSE-2.0
  14.  
  15.  Unless required by applicable law or agreed to in writing, software
  16.  distributed under the License is distributed on an "AS IS" BASIS,
  17.  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18.  See the License for the specific language governing permissions and
  19.  limitations under the License.
  20. -->
  21.  
  22. <manualpage metafile="sections.xml.meta">
  23.  
  24. <title>╝╜╝╟ ╝│┴ñ</title>
  25.  
  26. <summary> <p><a href="configuring.html">╝│┴ñ╞─└╧</a>┐í └╓┤┬
  27. ┴÷╜├╛ε┤┬ ╝¡╣÷ └ⁿ├╝┐í └√┐δ╡╟░┼│¬, ╞»┴ñ ╡≡╖║┼Σ╕«, ╞─└╧, ╚ú╜║╞«,
  28. URL┐í╕╕ └√┐δ╡╔ ╝÷ └╓┤┘. └╠ ╣«╝¡┤┬ ┤┘╕Ñ ┴÷╜├╛ε└╟ └√┐δ╣ⁿ└º╕ª
  29. ┴ª╟╤╟╧▒Γ└º╟╪ ╝│┴ñ ╝╜╝╟└╠│¬ <code>.htaccess</code> ╞─└╧└╗
  30. ╗τ┐δ╟╧┤┬ ╣µ╣²└╗ ╝│╕φ╟╤┤┘.</p>
  31. </summary>
  32.  
  33. <section id="types"><title>╝│┴ñ ╝╜╝╟└╟ ┴╛╖∙</title>
  34.  
  35. <related>
  36. <modulelist>
  37. <module>core</module>
  38. <module>mod_proxy</module>
  39. </modulelist>
  40. <directivelist>
  41. <directive type="section" module="core">Directory</directive>
  42. <directive type="section" module="core">DirectoryMatch</directive>
  43. <directive type="section" module="core">Files</directive>
  44. <directive type="section" module="core">FilesMatch</directive>
  45. <directive type="section" module="core">IfDefine</directive>
  46. <directive type="section" module="core">IfModule</directive>
  47. <directive type="section" module="core">Location</directive>
  48. <directive type="section" module="core">LocationMatch</directive>
  49. <directive type="section" module="mod_proxy">Proxy</directive>
  50. <directive type="section" module="mod_proxy">ProxyMatch</directive>
  51. <directive type="section" module="core">VirtualHost</directive>
  52. </directivelist>
  53. </related>
  54.  
  55. <p>╝╜╝╟┐í┤┬ ╡╬░í┴÷ ┴╛╖∙░í └╓┤┘. ┤δ║╬║╨└║ ╕┼┐Σ├╗╕╢┤┘ ├│╕«╡╚┤┘.
  56. ╟╪┤τ╟╧┤┬ ┐Σ├╗┐í╕╕ ╛╚┐í ╞≈╟╘╟╤ ┴÷╜├╛ε╕ª └√┐δ╟╤┤┘. ╣▌┤δ╖╬, <directive
  57. type="section" module="core">IfDefine</directive>░· <directive
  58. type="section" module="core">IfModule</directive>└║ ╝¡╣÷░í
  59. ╜├└█╟╥╢º┐═ ▓¿┴·╢º╕╕ ├│╕«╟╤┤┘. ╜├└█╟╥╢º ╗≤┼┬░í ┬ⁿ└╠╕Θ ╛╚┐í └╓┤┬
  60. ┴÷╜├╛ε░í ╕≡╡τ ┐Σ├╗┐í └√┐δ╡╚┤┘. ┬ⁿ└╠ ╛╞┤╧╕Θ ╛╚┐í └╓┤┬ ┴÷╜├╛ε┤┬
  61. ╣½╜├╟╤┤┘.</p>
  62.  
  63. <p><directive type="section" module="core">IfDefine</directive>
  64. ┴÷╜├╛ε┤┬ <code>httpd</code> ╕φ╖╔╟α┐í └√└²╟╤ ╞─╢≤╣╠┼═░í └╓┤┬
  65. ░µ┐∞┐í╕╕ ╛╚┐í ╞≈╟╘╟╤ ┴÷╜├╛ε╕ª └√┐δ╟╤┤┘. ┤┘└╜ ╝│┴ñ└╗ ┐╣╖╬ ╡Θ╕Θ,
  66. ╝¡╣÷╕ª <code>httpd -DClosedForNow</code>╖╬ ╜├└█╟╥ ░µ┐∞┐í╕╕
  67. ╕≡╡τ ┐Σ├╗└╠ ┤┘╕Ñ ╗τ└╠╞«╖╬ ╕«┤┘└╠╖║╝╟╡╚┤┘:</p>
  68.  
  69. <example>
  70. <IfDefine ClosedForNow><br />
  71. Redirect / http://otherserver.example.com/<br />
  72. </IfDefine>
  73. </example>
  74.  
  75. <p><directive type="section" module="core">IfModule</directive>
  76. ┴÷╜├╛ε╡╡ ╞»┴ñ ╕≡╡Γ└╠ ╝¡╣÷┐í ╞≈╟╘╡╚ ░µ┐∞┐í╕╕ ╛╚┐í ╡τ ┴÷╜├╛ε╕ª
  77. └√┐δ╟╤┤┘┤┬ ┴í└╗ ┴ª┐▄╟╧░φ┤┬ ╕┼┐∞ ║±╜┴╟╧┤┘. ╕≡╡Γ└╗ ╝¡╣÷┐í ┴ñ└√└╕╖╬
  78. ──╞─└╧╟╧░┼│¬ ╡┐└√└╕╖╬ ──╞─└╧╟╤╚─ ╝│┴ñ╞─└╧ ╛╒┐í <directive
  79. module="mod_so">LoadModule</directive> ┴┘└╠ └╓╛ε╛▀ ╟╤┤┘. └╠
  80. ┴÷╜├╛ε┤┬ ╞»┴ñ ╕≡╡Γ└╟ ╝│─í└»╣½┐í ╡√╢≤ ╝│┴ñ╞─└╧└╠ ┤┘╕ª ╟╩┐Σ░í
  81. └╓└╗╢º╕╕ ╗τ┐δ╟╪╛▀ ╟╤┤┘. ╕≡╡Γ└╠ ╛°┤┬ ░µ┐∞ └»┐δ╟╤ ┐└╖∙╣«└╠ │¬┐└┴÷╛╩└╗
  82. ╝÷ └╓▒Γ ╢º╣«┐í ╛≡┴ª│¬ ╗τ┐δ╟╧▒µ ┐°╟╧┤┬ ┴÷╜├╛ε╕ª ╛╚┐í ╡╬╕Θ ╛╚╡╚┤┘.</p>
  83.  
  84. <p>┤┘└╜ ┐╣┐í╝¡ <module>mod_mime_magic</module>└╠ └╓└╗╢º╕╕ <directive
  85. module="mod_mime_magic">MimeMagicFiles</directive> ┴÷╜├╛ε╕ª
  86. ├│╕«╟╤┤┘.</p>
  87.  
  88. <example>
  89. <IfModule mod_mime_magic.c><br />
  90. MimeMagicFile conf/magic<br />
  91. </IfModule>
  92. </example>
  93.  
  94. <p><directive type="section" module="core">IfDefine</directive>░·
  95. <directive type="section" module="core">IfModule</directive>└╟
  96. ░╦╗τ ╛╒┐í "!"└╗ ║┘┐⌐ ┴╢░╟└╗ ┐¬└╕╖╬ ╟╥ ╝÷ └╓┤┘. ╢╟, ┐⌐╖» ╝╜╝╟╡Θ└╗
  97. ░π├─╝¡ ╗τ┐δ╟╧┐⌐ ┤⌡ ║╣└Γ╟╤ ╚┐░·╕ª ╛≥└╗ ╝÷ └╓┤┘.</p>
  98. </section>
  99.  
  100. <section id="file-and-web"><title>╞─└╧╜├╜║┼█░· └Ñ░°░ú</title>
  101.  
  102. <p>░í└σ └┌┴╓ ╗τ┐δ╡╟┤┬ ╝│┴ñ ╝╜╝╟└║ ╞─└╧╜├╜║┼█░· └Ñ░°░ú(webspace)└╟
  103. ╞»┴ñ └σ╝╥┐í ┤δ╟╤ ╝│┴ñ└╗ ║»░µ╟╧┤┬ ░═╡Θ└╠┤┘. ╕╒└· └╠ ╡╤└╟ ┬≈└╠╕ª
  104. └╠╟╪╟╧┤┬ ░═└╠ ┴▀┐Σ╟╧┤┘. ╞─└╧╜├╜║┼█└║ ┐ε┐╡├╝┴ª └╘└σ┐í╝¡ ╡≡╜║┼⌐╕ª
  105. ║╕┤┬ ░ⁿ┴í└╠┤┘. ┐╣╕ª ╡Θ╛ε, ▒Γ║╗░¬└╕╖╬ ╛╞╞──í╕ª ╝│─í╕ª ╟╧╕Θ └»┤╨╜║
  106. ╞─└╧╜├╜║┼█└╟ ░µ┐∞ <code>/usr/local/apache2</code>, └⌐╡╡┐∞┴ε
  107. ╞─└╧╜├╜║┼█└╟ ░µ┐∞ <code>"c:/Program Files/Apache
  108. Group/Apache2"</code>┐í ╝│─í╡╚┤┘. (╛╞╞──í┤┬ └⌐╡╡┐∞┴ε┐í╝¡ ┴╢┬≈
  109. ╟╫╗≤, ┐¬╜╜╖í╜¼░í ╛╞┤╤, ╜╜╖í╜¼╕ª ╗τ┐δ╟╘└╗ ┴╓└╟╟╧╢≤.) ╣▌┤δ╖╬
  110. └Ñ░°░ú└║ └Ñ╝¡╣÷░í ┴ª░°╟╧░φ ┼¼╢≤└╠╛≡╞«░í ║╕░╘╡╔ ╗τ└╠╞«└╟ ░ⁿ┴í└╠┤┘.
  111. ▒╫╖í╝¡ └»┤╨╜║┐í╝¡ ▒Γ║╗ ╛╞╞──í ╝│─í╕ª ╟╤ ░µ┐∞ └Ñ░µ╖╬└╟ ░µ╖╬
  112. <code>/dir/</code>└║ ╞─└╧╜├╜║┼█ ░µ╖╬
  113. <code>/usr/local/apache2/htdocs/dir/</code>┐í ╟╪┤τ╟╤┤┘. └Ñ░°░ú└║
  114. ╡Ñ└╠┼╕║ú└╠╜║ ╡ε┐í╝¡ ╡┐└√└╕╖╬ ╗²╝║╡╔ ╝÷ └╓▒Γ╢º╣«┐í ╣▌╡σ╜├
  115. ╞─└╧╜├╜║┼█┐í ┴≈┴ó ┤δ└└╡╔ ╟╩┐Σ┤┬ ╛°┤┘.</p>
  116.  
  117. <section id="filesystem"><title>╞─└╧╜├╜║┼█ ╝╜╝╟</title>
  118.  
  119. <p><directive type="section" module="core">Directory</directive>┐═
  120. <directive type="section" module="core">Files</directive> ┴÷╜├╛ε┐═
  121. ┴ñ▒╘╟Ñ╟÷╜─└╗ ╗τ┐δ╟╧┤┬ ┴÷╜├╛ε┤┬ ╞─└╧╜├╜║┼█└╟ ╞»┴ñ ║╬║╨┐í ┴÷╜├╛ε╕ª
  122. └√┐δ╟╤┤┘. <directive type="section"
  123. module="core">Directory</directive> ┴÷╜├╛ε┐í ╞≈╟╘╡╚ ┴÷╜├╛ε╡Θ└║
  124. ┴÷┴ñ╟╤ ╞─└╧╜├╜║┼█ ╡≡╖║┼Σ╕«┐═ ▒╫ ╟╧└º ╡≡╖║┼Σ╕«┐í └√┐δ╡╚┤┘. <a
  125. href="howto/htaccess.html">.htaccess ╞─└╧</a>└╗ ╗τ┐δ╟╪╡╡ ░ß░·┤┬
  126. ░░┤┘. ┤┘└╜ ╝│┴ñ└╗ ┐╣╖╬ ╡Θ╕Θ, ╡≡╖║┼Σ╕« ╕±╖╧(index)└╠
  127. <code>/var/web/dir1</code> └╠╟╧ ╡≡╖║┼Σ╕«┐í╝¡ ╡≡╖║┼Σ╕« ╕±╖╧(index)└╠
  128. ░í┤╔╟╧┤┘.</p>
  129.  
  130. <example>
  131. <Directory /var/web/dir1><br />
  132. Options +Indexes<br />
  133. </Directory>
  134. </example>
  135.  
  136. <p><directive type="section"
  137. module="core">Files</directive> ╝╜╝╟┐í ╞≈╟╘╡╚ ┴÷╜├╛ε╡Θ└║ ╛ε╢▓
  138. ╡≡╖║┼Σ╕«┐í └╓┤┬┴÷ ░ⁿ░Φ╛°└╠ ┴÷┴ñ╟╤ └╠╕º└╗ ░í┴° ╞─└╧┐í └√┐δ╡╚┤┘.
  139. ╝│┴ñ╞─└╧└╟ ┴╓╝│┴ñ║╬║╨┐í └╓┤┬ ┤┘└╜ ╝│┴ñ└╗ ┐╣╖╬ ╡Θ╕Θ, └σ╝╥┐═
  140. ░ⁿ░Φ╛°└╠ <code>private.html</code>└╠╢⌡ └╠╕º└╗ ╟╤ ╞─└╧└╟ ┴ó▒┘└╗
  141. ░┼║╬╟╤┤┘.</p>
  142.  
  143. <example>
  144. <Files private.html><br />
  145. Order allow,deny<br />
  146. Deny from all<br />
  147. </Files>
  148. </example>
  149.  
  150. <p>╞─└╧╜├╜║┼█└╟ ╞»┴ñ ║╬║╨┐í └╓┤┬ ╞─└╧└╗ ┴÷─¬╟╧▒Γ└º╟╪ <directive
  151. type="section" module="core">Files</directive>┐═ <directive
  152. type="section" module="core">Directory</directive> ╝╜╝╟└╗ ░░└╠
  153. ╗τ┐δ╟╤┤┘. ┤┘└╜ ╝│┴ñ└╗ ┐╣╖╬ ╡Θ╕Θ,
  154. <code>/var/web/dir1/private.html</code>,
  155. <code>/var/web/dir1/subdir2/private.html</code>,
  156. <code>/var/web/dir1/subdir3/private.html</code> ░░└╠
  157. <code>/var/web/dir1/</code> ╡≡╖║┼Σ╕« ╛╞╖í┐í └╓┤┬ └╠╕º└╠
  158. <code>private.html</code>└╬ ╞─└╧└╟ ┴ó▒┘└╗ ░┼║╬╟╤┤┘.</p>
  159.  
  160. <example>
  161. <Directory /var/web/dir1><br />
  162. <Files private.html><br />
  163. Order allow,deny<br />
  164. Deny from all<br />
  165. </Files><br />
  166. </Directory>
  167. </example>
  168. </section>
  169.  
  170. <section id="webspace"><title>└Ñ░°░ú ╝╜╝╟</title>
  171.  
  172. <p><directive type="section" module="core">Location</directive>
  173. ┴÷╜├╛ε┐═ └╠┐í ╟╪┤τ╟╧┤┬ ┴ñ▒╘╟Ñ╟÷╜─└╗ ╗τ┐δ╟╧┤┬ ┴÷╜├╛ε┤┬ ╣▌┤δ╖╬
  174. ╞»┴ñ └Ñ░°░ú└╟ ╝│┴ñ└╗ ╣┘▓█┤┘. ┤┘└╜ ╝│┴ñ└╗ ┐╣╖╬ ╡Θ╕Θ, /private└╕╖╬
  175. ╜├└█╟╧┤┬ URL-░µ╖╬└╟ ┴ó▒┘└╠ ░┼║╬╡╚┤┘. ┐⌐▒Γ┐í┤┬
  176. <code>http://yoursite.example.com/private</code>,
  177. <code>http://yoursite.example.com/private123</code>,
  178. <code>http://yoursite.example.com/private/dir/file.html</code>
  179. ░░└╠ <code>/private</code> ╣«└┌┐¡╖╬ ╜├└█╟╧┤┬ ┐Σ├╗└╠ ╟╪┤τ╡╚┤┘.</p>
  180.  
  181. <example>
  182. <Location /private><br />
  183. Order Allow,Deny<br />
  184. Deny from all<br />
  185. </Location>
  186. </example>
  187.  
  188. <p><directive type="section" module="core">Location</directive>
  189. ┴÷╜├╛ε┤┬ ╞─└╧╜├╜║┼█┐í ┤δ└└╟╥ ╟╩┐Σ░í ╛°┤┘. ┤┘└╜ ┐╣┤┬ ╛ε╢╗░╘ ╞»┴ñ
  190. URL└╗ <module>mod_status</module>░í ┴ª░°╟╧┤┬ ╛╞╞──í │╗║╬ ╟┌╡Θ╖»╖╬
  191. ┤δ└└╜├┼░┤┬┴÷╕ª ║╕┐⌐┴╪┤┘. ╞─└╧╜├╜║┼█┐í <code>server-status</code>╢≤┤┬
  192. ╞─└╧└║ ╟╩┐Σ╛°┤┘.</p>
  193.  
  194. <example>
  195. <Location /server-status><br />
  196. SetHandler server-status<br />
  197. </Location>
  198. </example>
  199. </section>
  200.  
  201. <section id="wildcards"><title>┐═└╧╡σ─½╡σ┐═ ┴ñ▒╘╟Ñ╟÷╜─</title>
  202.  
  203. <p><directive type="section" module="core">Directory</directive>,
  204. <directive type="section" module="core">Files</directive>,
  205. <directive type="section" module="core">Location</directive>
  206. ┴÷╜├╛ε┐í╝¡ C ╟Ñ┴╪ ╞─└╠║Ω╖»╕«└╟ <code>fnmatch</code>┐═ ░░└║
  207. ╜⌐┐í╝¡ ╗τ┐δ╟╧┤┬ ┐═└╧╡σ─½╡σ ╣«└┌╕ª ╗τ┐δ╟╥ ╝÷ └╓┤┘.
  208. "*" ╣«└┌┤┬ ╛ε╢▓ ╣«└┌┐¡└╠╢≤╡╡ │¬┼╕│╗░φ, "?" ╣«└┌┤┬ ╛ε╢▓ ╣«└┌ ╟╤░│╕ª
  209. │¬┼╕│╗╕τ, "[<em>seq</em>]"┤┬ <em>seq</em> ┴▀┐í ╟╤ ╣«└┌╕ª │¬┼╕│╜┤┘.
  210. ╛ε╢▓ ┐═└╧╡σ─½╡σ╡╡ "/" ╣«└┌╕ª │¬┼╕│╗┴÷┤┬ ╕°╟╤┤┘. ▒╫╖í╝¡ └╠ ╣«└┌┤┬
  211. ┴≈┴ó ╗τ┐δ╟╪╛▀ ╟╤┤┘.</p>
  212.  
  213. <p>┤⌡ └»┐¼╟╤ ╝│┴ñ└╠ ╟╩┐Σ╟╧╕Θ perl╚ú╚» <a
  214. href="glossary.html#regex">┴ñ▒╘╟Ñ╟÷╜─</a>└╗ ╗τ┐δ╟╧┤┬ <directive
  215. type="section" module="core">DirectoryMatch</directive>, <directive
  216. type="section" module="core">FilesMatch</directive>, <directive
  217. type="section" module="core">LocationMatch</directive>╕ª ╗τ┐δ╟╥
  218. ╝÷ └╓┤┘. ▒╫╖»│¬ ╛╞╖í ╝│┴ñ└╟ ░ß╟╒┐í ░ⁿ╟╤ └²┐í╝¡ ┴ñ▒╘╟Ñ╟÷╜─ ╝╜╝╟└╗
  219. ╗τ┐δ╟╧╕Θ ┴÷╜├╛ε░í └√┐δ╡╟┤┬ ╣µ╣²└╠ ╛ε╢╗░╘ ║»╟╧┤┬┴÷ ╗∞╞∞║┴╢≤.</p>
  220.  
  221. <p>╕≡╡τ ╗τ┐δ└┌ ╡≡╖║┼Σ╕« ╝│┴ñ└╗ ║»░µ╟╧┤┬ ║±┴ñ▒╘╟Ñ╟÷╜─ ┐═└╧╡σ─½╡σ
  222. ╝╜╝╟└║ ┤┘└╜░· ░░┤┘:</p>
  223.  
  224. <example>
  225. <Directory /home/*/public_html><br />
  226. Options Indexes<br />
  227. </Directory>
  228. </example>
  229.  
  230. <p>┴ñ▒╘╟Ñ╟÷╜─ ╝╜╝╟└╗ ╗τ┐δ╟╧┐⌐ ╟╤╣°┐í ┐⌐╖» ┴╛╖∙└╟ ▒╫╕▓╞─└╧┐í
  231. ┤δ╟╤ ┴ó▒┘└╗ ░┼║╬╟╥ ╝÷ └╓┤┘:</p>
  232. <example>
  233. <FilesMatch \.(?i:gif|jpe?g|png)$><br />
  234. Order allow,deny<br />
  235. Deny from all<br />
  236. </FilesMatch>
  237. </example>
  238.  
  239. </section>
  240.  
  241. <section id="whichwhen"><title>╣½╛∙└╗ ╗τ┐δ╟╧│¬</title>
  242.  
  243. <p>╞─└╧╜├╜║┼█ ╝╜╝╟░· └Ñ░°░ú ╝╜╝╟ ┴▀ ╟╧│¬╕ª ╝▒┼├╟╧┤┬ ░═└║ ╜╟┴ª╖╬
  244. ╕┼┐∞ ╜▒┤┘. ╞─└╧╜├╜║┼█┐í └╓┤┬ ░┤├╝┐í ┴÷╜├╛ε╕ª └√┐δ╟╥╢º┤┬ ╟╫╗≤
  245. <directive type="section" module="core">Directory</directive>│¬
  246. <directive type="section" module="core">Files</directive>╕ª
  247. ╗τ┐δ╟╤┤┘. (╡Ñ└╠┼╕║ú└╠╜║┐í╝¡ ╗²╝║╟╤ └Ñ╞Σ└╠┴÷┐═ ░░└╠) ╞─└╧╜├╜║┼█┐í
  248. └╓┴÷ ╛╩┤┬ ░┤├╝┐í ┴÷╜├╛ε╕ª └√┐δ╟╥╢º┤┬ <directive type="section"
  249. module="core">Location</directive>└╗ ╗τ┐δ╟╤┤┘.</p>
  250.  
  251. <p>╞─└╧╜├╜║┼█┐í └╓┤┬ ░┤├╝└╟ ┴ó▒┘└╗ ┴ª╟╤╟╧▒Γ└º╟╪ <directive
  252. type="section" module="core">Location</directive>└╗ ╗τ┐δ╟╧╕Θ
  253. └²┤δ ╛╚╡╚┤┘. ┐⌐╖» ┤┘╕Ñ └Ñ░°░ú └σ╝╥(URL)░í ░░└║ ╞─└╧╜├╜║┼█ └σ╝╥┐í
  254. ┤δ└└╡╔ ╝÷ └╓└╕╣╟╖╬, ░╔╛ε╡╨ ┴ª╟╤└╗ ┐∞╚╕╟╥ ╝÷ └╓▒Γ ╢º╣«└╠┤┘. ┤┘└╜
  255. ╝│┴ñ└╟ ┐╣╕ª ╗∞╞∞║╕└┌:</p>
  256.  
  257. <example>
  258. <Location /dir/><br />
  259. Order allow,deny<br />
  260. Deny from all<br />
  261. </Location>
  262. </example>
  263.  
  264. <p>└╠ ╝│┴ñ└║ <code>http://yoursite.example.com/dir/</code>└╗
  265. ┐Σ├╗╟╤┤┘╕Θ └▀ └█╡┐╟╤┤┘. ▒╫╖»│¬ ┤δ╝╥╣«└┌╕ª ▒╕║░╟╧┴÷╛╩┤┬ ╞─└╧╜├╜║┼█└╗
  266. ╗τ┐δ╟╤┤┘╕Θ ╛ε╢╗░╘╡╟│¬?
  267. <code>http://yoursite.example.com/DIR/</code>└╗ ┐Σ├╗╟╧┐⌐ ╜▒░╘
  268. ┴ª╟╤└╗ ┐∞╚╕╟╥ ╝÷ └╓┤┘. ╣▌┤δ╖╬ <directive type="section"
  269. module="core">Directory</directive> ┴÷╜├╛ε┤┬ ╛ε╢╗░╘ ┐Σ├╗╟╧┐┤┤┬┴÷
  270. ░ⁿ░Φ╛°└╠ ▒╫ └σ╝╥┐í╝¡ ╝¡║±╜║╡╟┤┬ │╗┐δ┐í └√┐δ╡╚┤┘. (┐╣┐▄┤┬ ╞─└╧╜├╜║┼█
  271. ╕╡┼⌐╕ª ╗τ┐δ╟╧┤┬ ░µ┐∞┤┘. ╜╔║╝╕╡┼⌐╕ª ╗τ┐δ╟╧┐⌐ ╟╤ ╡≡╖║┼Σ╕«╕ª
  272. ╞─└╧╜├╜║┼█└╟ ┐⌐╖» └σ╝╥┐í ╡╤ ╝÷ └╓┤┘. <directive type="section"
  273. module="core">Directory</directive> ┴÷╜├╛ε┤┬ ╜╔║╝╕╡┼⌐╕ª ╡√╢≤░ú┤┘.
  274. ▒╫╖»╣╟╖╬ │⌠└║ ╝÷┴╪└╟ ║╕╛╚└╗ └º╟╪╝¡┤┬ └√└²╟╤ <directive
  275. module="core">Options</directive> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ ╜╔║╝╕╡┼⌐╕ª
  276. ╣½╜├╟╪╛▀ ╟╤┤┘.)</p>
  277.  
  278. <p>╛╞╕╢╡╡ ┤τ╜┼└║ ┤δ╝╥╣«└┌╕ª ▒╕║░╟╧┤┬ ╞─└╧╜├╜║┼█└╗ ╗τ┐δ╟╧╣╟╖╬
  279. └╠╖▒ └╧└╠ └╧╛ε│¬┴÷ ╛╩┤┬┤┘░φ ╗²░ó╟╥┴÷╡╡ ╕≡╕Ñ┤┘. ▒╫╖»│¬ ┤┘╕Ñ
  280. ╣µ╣²└╕╖╬╡╡ ┐⌐╖» └Ñ░°░ú └º─í░í ╟╤ ╞─└╧╜├╜║┼█ └º─í┐í ┤δ└└╡╔ ╝÷
  281. └╓└╜└╗ ▒Γ╛∩╟╧╢≤. ▒╫╖í╝¡ ░í┤╔╟╧╕Θ ╟╫╗≤ ╞─└╧╜├╜║┼█ ╝╜╝╟└╗ ╗τ┐δ╟╪╛▀
  282. ╟╤┤┘. ▒╫╖»│¬ └╠ ▒╘─ó┐í ┐╣┐▄░í ╟╧│¬ └╓┤┘. ╝│┴ñ ┴ª╟╤└╗
  283. <code><Location /></code> ╝╜╝╟┐í ╡╬╕Θ └╠ ╝╜╝╟└╠ ╞»┴ñ
  284. URL└╠ ╛╞┤╤ ╕≡╡τ ┐Σ├╗┐í └√┐δ╡╟╣╟╖╬ ┐╧║«╟╧░╘ ╛╚└ⁿ╟╧┤┘.</p>
  285. </section>
  286.  
  287. </section>
  288.  
  289. <section id="virtualhost"><title>░í╗≤╚ú╜║╞«</title>
  290.  
  291. <p><directive type="section" module="core">VirtualHost</directive>
  292. ╝╜╝╟└║ ╞»┴ñ ╚ú╜║╞«┐í └√┐δ╡╟┤┬ ┴÷╜├╛ε╡Θ└╗ ╞≈╟╘╟╤┤┘. └╠┤┬ ╟╤
  293. ──╟╗┼═┐í╝¡ ░ó░ó ┤┘╕Ñ ╝│┴ñ└╗ ╗τ┐δ╟╤ ┐⌐╖» ╚ú╜║╞«╕ª ╝¡║±╜║╟╥╢º
  294. └»┐δ╟╧┤┘. ┤⌡ └┌╝╝╟╤ ┴ñ║╕┤┬ <a href="vhosts/">░í╗≤╚ú╜║╞« ╣«╝¡</a>╕ª
  295. ┬ⁿ░φ╟╧╢≤.</p>
  296. </section>
  297.  
  298. <section id="proxy"><title>╟┴╖╧╜├</title>
  299.  
  300. <p><directive type="section" module="mod_proxy">Proxy</directive>┐═
  301. <directive type="section" module="mod_proxy">ProxyMatch</directive>
  302. ╝╜╝╟└║ ┴÷┴ñ╟╤ URL┐í ┤δ╟╪ <module>mod_proxy</module> ╟┴╖╧╜├ ╝¡╣÷╕ª
  303. ░┼├─ ┴ó▒┘╟╧┤┬ ░µ┐∞┐í╕╕ └√┐δ╡╚┤┘. ┤┘└╜ ╝│┴ñ└╗ ┐╣╖╬ ╡Θ╕Θ, ╟┴╖╧╜├
  304. ╝¡╣÷╕ª ┼δ╟╪ <code>cnn.com</code> └Ñ╗τ└╠╞«┐í ┴ó▒┘╟╥ ╝÷ ╛°┤┘.</p>
  305.  
  306. <example>
  307. <Proxy http://cnn.com/*><br />
  308. Order allow,deny<br />
  309. Deny from all<br />
  310. </Proxy>
  311. </example>
  312. </section>
  313.  
  314. <section id="whatwhere"><title>╛╚┐í ╛ε╢▓ ┴÷╜├╛ε╕ª ╗τ┐δ╟╥ ╝÷
  315. └╓│¬?</title>
  316.  
  317. <p>╛ε╢▓ ╝│┴ñ ╝╜╝╟╛╚┐í ╗τ┐δ╟╥ ╝÷ └╓┤┬ ┴÷╜├╛ε╕ª ╛╦╖┴╕Θ ┴÷╜├╛ε└╟
  318. <a href="mod/directive-dict.html#Context">╗τ┐δ└σ╝╥</a>╕ª ╚«└╬╟╧╢≤.
  319. <directive type="section" module="core">Directory</directive>┐í╝¡
  320. ╗τ┐δ░í┤╔╟╤ ┴÷╜├╛ε┤┬ <directive type="section"
  321. module="core">DirectoryMatch</directive>, <directive type="section"
  322. module="core">Files</directive>, <directive type="section"
  323. module="core">FilesMatch</directive>, <directive type="section"
  324. module="core">Location</directive>, <directive type="section"
  325. module="core">LocationMatch</directive>, <directive type="section"
  326. module="mod_proxy">Proxy</directive>, <directive type="section"
  327. module="mod_proxy">ProxyMatch</directive> ╝╜╝╟┐í╝¡╡╡ ╗τ┐δ░í┤╔╟╧┤┘.
  328. ▒╫╖»│¬, ┐╣┐▄░í └╓┤┘.</p>
  329.  
  330. <ul>
  331. <li><directive module="core">AllowOverride</directive> ┴÷╜├╛ε┤┬
  332. <directive type="section" module="core">Directory</directive>
  333. ╝╜╝╟┐í╝¡╕╕ ╗τ┐δ╟╥ ╝÷ └╓┤┘.</li>
  334.  
  335. <li><code>FollowSymLinks</code>, <code>SymLinksIfOwnerMatch</code>,
  336. <directive module="core">Options</directive>┤┬ <directive
  337. type="section" module="core">Directory</directive> ╝╜╝╟└╠│¬
  338. <code>.htaccess</code> ╞─└╧┐í╝¡╕╕ ╗τ┐δ╟╥ ╝÷ └╓┤┘.</li>
  339.  
  340. <li><directive module="core">Options</directive> ┴÷╜├╛ε┤┬
  341. <directive type="section" module="core">Files</directive>░·
  342. <directive type="section" module="core">FilesMatch</directive>
  343. ╝╜╝╟┐í╝¡ ╗τ┐δ╟╥ ╝÷ ╛°┤┘.</li>
  344. </ul>
  345. </section>
  346.  
  347. <section id="mergin"><title>╝╜╝╟╡Θ└╠ ░ß╟╒╟╧┤┬ ╣µ╣²</title>
  348.  
  349. <p>╝│┴ñ ╝╜╝╟└║ ╕┼┐∞ ╞»║░╟╤ ╣µ╣²└╕╖╬ └√┐δ╡╚┤┘. └╠ ╝°╝¡░í ╝│┴ñ
  350. ┴÷╜├╛ε╕ª ╟╪╝«╟╧┤┬ ╣µ╣²┐í ┴▀┐Σ╟╤ ┐╡╟Γ└╗ ┴╓▒Γ╢º╣«┐í └╠ ╣µ╣²└╗
  351. └╠╟╪╟╧┤┬ ░═└╠ ┴▀┐Σ╟╧┤┘.</p>
  352.  
  353.     <p>░ß╟╒╟╧┤┬ ╝°╝¡┤┬:</p>
  354.  
  355.     <ol>
  356.       <li> (┴ñ▒╘╟Ñ╟÷╜─└╗ ╗τ┐δ╟╧┴÷╛╩┤┬) <directive type="section"
  357.       module="core">Directory</directive>┐═ <code>.htaccess</code>┤┬
  358.       ╡┐╜├┐í └╧╛ε│¡┤┘ (░µ┐∞┐í ╡√╢≤ <code>.htaccess</code>└╠
  359.       <directive type="section" module="core">Directory</directive>╕ª
  360.       ╣½╜├╟╧╡╡╖╧ ╝│┴ñ╟╥ ╝÷ └╓┤┘)</li>
  361.  
  362.       <li><directive type="section"
  363.       module="core">DirectoryMatch</directive> (▒╫╕«░φ
  364.       <code><Directory ~></code>)</li>
  365.  
  366.       <li><directive type="section"
  367.       module="core">Files</directive>┐═ <directive type="section"
  368.       module="core">FilesMatch</directive>┤┬ ╡┐╜├┐í └╧╛ε│¡┤┘</li>
  369.  
  370.       <li><directive type="section"
  371.       module="core">Location</directive>░· <directive type="section"
  372.       module="core">LocationMatch</directive>┤┬ ╡┐╜├┐í └╧╛ε│¡┤┘</li>
  373.     </ol>
  374.  
  375.     <p><directive type="section"
  376.     module="core">Directory</directive>╕ª ┴ª┐▄╟╧░φ ░ó ╝╜╝╟╡Θ└╗
  377.     ╝│┴ñ╞─└╧┐í │¬┐┬ ╝°╝¡┤δ╖╬ ├│╕«╡╚┤┘. (└º└╟ ╝°╝¡ 1) <directive
  378.     type="section" module="core">Directory</directive>┤┬ ╡≡╖║┼Σ╕«
  379.     │╗┐δ└╠ ░í└σ ┬¬└║ ░═┐í╝¡ ▒Σ┬╩└╕╖╬ ├│╕«╡╚┤┘. ▒╫╖í╝¡ ┐╣╕ª ╡Θ╛ε,
  380.     <code><Directory /var/web/dir></code>└╗
  381.     <code><Directory /var/web/dir/subdir></code> └╠└ⁿ┐í
  382.     ├│╕«╟╤┤┘. ░░└║ ╡≡╖║┼Σ╕«╕ª ┴÷─¬╟╧┤┬ ┐⌐╖» <directive
  383.     type="section" module="core">Directory</directive> ╝╜╝╟└╠
  384.     └╓┤┘╕Θ └╠╡Θ└╗ ╝│┴ñ╞─└╧ ╝°╝¡┤δ╖╬ ├│╕«╟╤┤┘. <directive
  385.     module="core">Include</directive> ┴÷╜├╛ε╖╬ ╞≈╟╘╟╤ ╝│┴ñ└║
  386.     <directive module="core">Include</directive> ┴÷╜├╛ε └º─í┐í
  387.     ╞≈╟╘╟╤ ╞─└╧ │╗┐δ└╠ └╓┤┬ ░═├│╖│ ├│╕«╟╤┤┘.</p>
  388.  
  389.     <p><directive type="section"
  390.     module="core">VirtualHost</directive> ╝╜╝╟ ╛╚┐í ╞≈╟╘╡╚ ╝╜╝╟└║
  391.     ░í╗≤╚ú╜║╞« ┴ñ└╟ ╣█┐í └╓┤┬ ╟╪┤τ ╝╜╝╟ <em>└╠╚─┐í</em> └√┐δ╡╚┤┘.
  392.     ▒╫╖í╝¡ ░í╗≤╚ú╜║╞« ╛╚┐í╝¡ ┴╓╝¡╣÷└╟ ╝│┴ñ╗τ╟╫└╗ ╝÷┴ñ╟╥ ╝÷ └╓┤┘.</p>
  393.  
  394.     <p>┤┘└╜┐í │¬┐└┤┬ ╝╜╝╟└║ └╠└ⁿ ╝╜╝╟└╟ ░ß░·╕ª ╝÷┴ñ╟╤┤┘.</p>
  395.  
  396. <note><title>▒Γ╝·└√ ┴╓└╟</title>
  397.       ╜╟┴ª╖╬
  398.       <code><Location></code>/<code><LocationMatch></code>┤┬
  399.       (<code>Aliases</code>┐═ <code>DocumentRoot</code>╕ª ╗τ┐δ╟╧┐⌐
  400.       URL└╗ ╞─└╧╕φ└╕╖╬ ║»╚»╟╧┤┬) └╠╕º╣°┐¬ ┤▄░Φ └╠└ⁿ┐í ├│╕«╡╚┤┘.
  401.       ║»┐¬└╠ │í│¡ └╠╚─┐í┤┬ ┐╧└ⁿ╚≈ ╣½╜├╟╤┤┘.
  402. </note>
  403.  
  404. <section id="merge-examples"><title>┐╣┴ª</title>
  405.  
  406. <p>┤┘└╜└║ ░π╟╒╟╧┤┬ ╝°╝¡╕ª ╝│╕φ╟╧┤┬ ┐╣┤┘. └╠╡Θ ╕≡╡╬ ┐Σ├╗┐í
  407. └√┐δ╡╚┤┘░φ ░í┴ñ╟╧╕Θ ┴÷╜├╛ε┤┬ A > B > C > D > E
  408. ╝°╝¡╖╬ ├│╕«╡╚┤┘.</p>
  409.  
  410. <example>
  411. <Location /><br />
  412. E<br />
  413. </Location><br />
  414. <br />
  415. <Files f.html><br />
  416. D<br />
  417. </Files><br />
  418. <br />
  419. <VirtualHost *><br />
  420. <Directory /a/b><br />
  421. B<br />
  422. </Directory><br />
  423. </VirtualHost><br />
  424. <br />
  425. <DirectoryMatch "^.*b$"><br />
  426. C<br />
  427. </DirectoryMatch><br />
  428. <br />
  429. <Directory /a/b><br />
  430. A<br />
  431. </Directory><br />
  432. <br />
  433. </example>
  434.  
  435. <p>┤⌡ ╟÷╜╟└√└╬ ┐╣┤┬ ┤┘└╜░· ░░┤┘. <directive module="core"
  436. type="section">Location</directive> ╝╜╝╟└╗ │¬┴▀┐í ├│╕«╟╧╣╟╖╬
  437. <directive module="core" type="section">Directory</directive>
  438. ╝╜╝╟┐í └╓┤┬ ┴ó▒┘┴ª╟╤░· ░ⁿ░Φ╛°└╠ ╝¡╣÷┐í ╣½┴ª╟╤ ┴ó▒┘└╗ ░í┤╔╟╧┤┘.
  439. ┴∩, ░ß╟╒╟╧┤┬ ╝°╝¡┤┬ ┴▀┐Σ╟╧╣╟╖╬ ┴╓└╟╟╧╢≤!</p>
  440.  
  441. <example>
  442. <Location /><br />
  443. Order deny,allow<br />
  444. Allow from all<br />
  445. </Location><br />
  446. <br />
  447. # ╛╟!  └╠ <Directory> ╝╜╝╟└║ ╛╞╣½╖▒ ╚┐░·░í ╛°┤┘<br />
  448. <Directory /><br />
  449. Order allow,deny<br />
  450. Allow from all<br />
  451. Deny from badguy.example.com<br />
  452. </Directory>
  453. </example>
  454.  
  455. </section>
  456.  
  457. </section>
  458. </manualpage>
  459.  
  460.