home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 May
/
PCWorld_2004-05_cd.bin
/
komunikace
/
apache
/
apache_2.0.48-win32-x86-no_ssl.msi
/
Data.Cab
/
F253046_namebased.xml.ko
< prev
next >
Wrap
Extensible Markup Language
|
2003-05-10
|
10KB
|
236 lines
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
<!-- English revision: 1.5.2.3 -->
<manualpage metafile="name-based.xml.meta">
<parentdocument href="./">░í╗≤╚ú╜║╞«</parentdocument>
<title>└╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞« ┴÷┐°</title>
<summary>
<p>└╠ ╣«╝¡┤┬ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ╗τ┐δ╟╧┤┬ ░µ┐∞┐═ ╣µ╣²└╗
╝│╕φ╟╤┤┘.</p>
</summary>
<seealso><a href="ip-based.html">IP▒Γ╣▌ ░í╗≤╚ú╜║╞« ┴÷┐°</a></seealso>
<seealso><a href="details.html">░í╗≤╚ú╜║╞« ├ú▒Γ┐í ┤δ╟╤ └┌╝╝╟╤ ╝│╕φ</a></seealso>
<seealso><a href="mass.html">┤δ╖«└╟ ░í╗≤╚ú╜║╞«╕ª ╡┐└√└╕╖╬ ╝│┴ñ╟╧▒Γ</a></seealso>
<seealso><a href="examples.html">└╧╣▌└√└╬ ░í╗≤╚ú╜║╞« ┐╣</a></seealso>
<seealso><a href="examples.html#serverpath">ServerPath ╝│┴ñ ┐╣</a></seealso>
<section id="namevip"><title>└╠╕º▒Γ╣▌ ┤δ IP▒Γ╣▌ ░í╗≤╚ú╜║╞«</title>
<p>IP▒Γ╣▌ ░í╗≤╚ú╜║╞«┤┬ ┐¼░ß╟╤ IP ┴╓╝╥╕ª ░í┴÷░φ ╝¡║±╜║╟╥
░í╗≤╚ú╜║╞«╕ª ░ß┴ñ╟╤┤┘. ▒╫╖í╝¡ ░ó ╚ú╜║╞«┤┬ ╝¡╖╬ ┤┘╕Ñ IP ┴╓╝╥╕ª
░í┴«╛▀ ╟╤┤┘. └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«└╟ ░µ┐∞ ╝¡╣÷┤┬ ┼¼╢≤└╠╛≡╞«░í
HTTP ╟∞┤⌡╖╬ ╚ú╜║╞«╕φ└╗ ╛╦╖┴┴╓▒µ ╣┘╢⌡┤┘. └╠╖▒ ╣µ╣²└╕╖╬ ╟╤
IP ┴╓╝╥╖╬ ┐⌐╖» ┤┘╕Ñ ╚ú╜║╞«╕ª ╝¡║±╜║╟╥ ╝÷ └╓┤┘.</p>
<p>└╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«┤┬ DNS ╝¡╣÷░í ░ó ╚ú╜║╞«╕φ└╠ ┐├╣┘╕Ñ
IP ┴╓╝╥╖╬ ┤δ└└╟╧╡╡╖╧ ░í╗≤╚ú╜║╞«╕ª ╝│┴ñ╟╧░φ, ┤┘╕Ñ ╚ú╜║╞«╕φ└╗ ▒╕║░╟╥
╝÷ └╓╡╡╖╧ ╛╞╞──í └Ñ╝¡╣÷╕ª ╝│┴ñ╟╧▒Γ╕╕ ╟╧╕Θ╡╟╣╟╖╬ ┤⌡ ░ú┤▄╟╧┤┘. └╠╕º▒Γ╣▌
░í╗≤╚ú╜║╞«┤┬ ╢╟ ┐⌐╖» IP ┴╓╝╥░í ╟╩┐Σ╛°┤┘. ▒╫╖»╣╟╖╬ ╞»║░╚≈
IP▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ╝▒┼├╟╥ └╠└»░í ╛°┤┘╕Θ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª
╗τ┐δ╟╪╛▀ ╟╤┤┘. IP▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ╗τ┐δ╟╪╛▀╟╥ └╠└»╖╬┤┬:</p>
<ul>
<li>└╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ┴÷┐°╟╧┴÷╛╩┤┬ ┐└╖í╡╚
┼¼╢≤└╠╛≡╞«╡Θ└╠ └╓┤┘. └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ╗τ┐δ╟╧╖┴╕Θ
┼¼╢≤└╠╛≡╞«░í HTTP Host ╟∞┤⌡╕ª ║╕│╗╛▀ ╟╤┤┘. └╠┤┬
HTTP/1.1┐í╝¡┤┬ ╟╩╝÷└╠░φ, ├╓▒┘ ╕≡╡τ HTTP/1.0 ║Ω╢≤┐∞└·╡Θ╡╡
╚«└σ└╕╖╬ ┴÷┐°╟╤┤┘. ╕╕╛α └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ╗τ┐δ╟╧╕Θ╝¡
┐└╖í╡╚ ┼¼╢≤└╠╛≡╞«╕ª ┴÷┐°╟╪╛▀ ╟╤┤┘╕Θ └╠ ╣«╝¡ │í┐í └╓┤┬
╣µ╣²└╗ ╗∞╞∞║┴╢≤.</li>
<li>SSL ╟┴╖╬┼Σ─▌└╟ ╝║░▌╗≤ SSL ║╕╛╚╝¡╣÷┐í╝¡ └╠╕º▒Γ╣▌
░í╗≤╚ú╜║╞«╕ª ╗τ┐δ╟╥ ╝÷ ╛°┤┘.</li>
<li>╛ε╢▓ ┐ε┐╡├╝┴ª│¬ │╫╞«┐≈ └σ─í┤┬ ┤┘╕Ñ IP ┴╓╝╥╕ª ╗τ┐δ╟╧┴÷
╛╩└╕╕Θ ╚ú╜║╞«╕ª ▒╕║░╟╧┴÷ ╕°╟╧┤┬ │╫╞«┐≈ ╗τ┐δ╖«(bandwidth)
░ⁿ╕«▒Γ╝·└╗ ╗τ┐δ╟╤┤┘.</li>
</ul>
</section>
<section id="using"><title>└╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞« ╗τ┐δ╟╧▒Γ</title>
<related>
<modulelist>
<module>core</module>
</modulelist>
<directivelist>
<directive module="core">DocumentRoot</directive>
<directive module="core">NameVirtualHost</directive>
<directive module="core">ServerAlias</directive>
<directive module="core">ServerName</directive>
<directive module="core">ServerPath</directive>
<directive module="core">VirtualHost</directive>
</directivelist>
</related>
<p>└╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ╗τ┐δ╟╧╖┴╕Θ ╝¡╣÷┤┬ ┐¼░ß└╗ ╣▐└╗
IP ┴╓╝╥╕ª (╛╞╕╢ ╞≈╞«╡╡) ┴ñ╟╪╛▀ ╟╤┤┘. └╠┤┬ <directive
module="core">NameVirtualHost</directive> ┴÷╜├╛ε╖╬ ░í┤╔╟╧┤┘.
└╧╣▌└√└╕╖╬ ╝¡╣÷└╟ ╕≡╡τ IP ┴╓╝╥╕ª ╗τ┐δ╟╤┤┘╕Θ
<code>NameVirtualHost</code>└╟ ╛╞▒╘╕╒╞«╖╬ <code>*</code>╕ª
╗τ┐δ╟╤┤┘. <code>NameVirtualHost</code> ┴÷╜├╛ε┐í IP ┴╓╝╥╕ª
└√╛ε┴╓╛·┤┘░φ ╝¡╣÷░í └┌╡┐└╕╖╬ ▒╫ IP ┴╓╝╥╕ª ▒Γ┤┘╕«┴÷ ╛╩└╜└╗
┴╓└╟╟╧╢≤. └┌╝╝╟╤ │╗┐δ└║ <a href="../bind.html">╛╞╞──í░í
╗τ┐δ╟╥ ┴╓╝╥┐═ ╞≈╞« ╝│┴ñ╟╧▒Γ</a>╕ª ┬ⁿ░φ╟╧╢≤. ╢╟, ┐⌐▒Γ╝¡
┴÷┴ñ╟╤ IP ┴╓╝╥┤┬ ╝¡╣÷└╟ │╫╞«┐≈ └╬┼═╞Σ└╠╜║└╠╛ε╛▀ ╟╤┤┘.</p>
<p>┤┘└╜ ┤▄░Φ┤┬ ╝¡║±╜║╟╧╖┴┤┬ ╚ú╜║╞«║░╖╬ <directive
type="section" module="core">VirtualHost</directive> ║φ╖╧└╗
╕╕╡σ┤┬ └╧└╠┤┘. <code><VirtualHost></code> ┴÷╜├╛ε└╟
╛╞▒╘╕╒╞«┤┬ <code>NameVirtualHost</code> ┴÷╜├╛ε└╟ ╛╞▒╘╕╒╞«(┐╣╕ª
╡Θ╛ε, IP ┴╓╝╥│¬ ╕≡╡τ ┴╓╝╥╕ª ╢µ╟╧┤┬ <code>*</code>)┐═
░░╛╞╛▀ ╟╤┤┘. <code><VirtualHost></code> ║φ╖╧ ╛╚┐í┤┬
├╓╝╥╟╤ ╝¡║±╜║╟╥ ╚ú╜║╞«╕ª ┴÷┴ñ╟╧┤┬ <directive
module="core">ServerName</directive> ┴÷╜├╛ε┐═ ╚ú╜║╞«└╟
│╗┐δ└╠ ╞─└╧╜├╜║┼█ ╛ε╡≡┐í └╓┤┬┴÷╕ª ┴÷┴ñ╟╧┤┬ <directive
module="core">DocumentRoot</directive> ┴÷╜├╛ε░í ╟╩┐Σ╟╧┤┘.</p>
<note><title>┴╓ ╚ú╜║╞«░í ╛°╛ε┴°┤┘</title>
▒Γ┴╕┐í ╗τ┐δ╟╧┤° └Ñ╝¡╣÷┐í ░í╗≤╚ú╜║╞«╕ª ├▀░í╟╤┤┘╕Θ ▒Γ┴╕┐í
╗τ┐δ╟╧┤° ╚ú╜║╞«┐í ┤δ╟╤ <VirtualHost> ║φ╖╧╡╡ ├▀░í╟╪╛▀
╟╤┤┘. └╠ ║φ╖╧┐í ╞≈╟╘╟╧┤┬ <code>ServerName</code>░·
<code>DocumentRoot</code>┤┬ └ⁿ├╝ <code>ServerName</code>░·
<code>DocumentRoot</code>┐═ ░░╛╞╛▀ ╟╤┤┘. ╝│┴ñ╞─└╧┐í╝¡ └╠
░í╗≤╚ú╜║╞«╕ª ░í└σ ╕╒└· └√└╕╕Θ ▒Γ║╗ ╚ú╜║╞«░í ╡╚┤┘.
</note>
<p>┐╣╕ª ╡Θ╛ε <code>www.domain.tld</code> ╡╡╕▐└╬└╗ ╝¡║±╜║╟╧░φ
└╓╛·┤┬╡Ñ ░░└║ IP ┴╓╝╥┐í
<code>www.otherdomain.tld</code>╢⌡ ░í╗≤╚ú╜║╞«╕ª ├▀░í╟╧░φ
╜═┤┘░φ ░í┴ñ╟╧└┌. <code>httpd.conf</code>┐í ┤┘└╜░· ░░└╠
├▀░í╟╧╕Θ ╡╚┤┘:</p>
<example>
NameVirtualHost *<br />
<br />
<VirtualHost *><br />
<indent>
ServerName www.domain.tld<br />
ServerAlias domain.tld *.domain.tld<br />
DocumentRoot /www/domain<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost *><br />
<indent>ServerName www.otherdomain.tld<br />
DocumentRoot /www/otherdomain<br />
</indent>
</VirtualHost><br />
</example>
<p><code>NameVirtualHost</code>┐═
<code><VirtualHost></code> ┴÷╜├╛ε ╡╤ ╕≡╡╬ * ┤δ╜┼
┴≈┴ó IP ┴╓╝╥╕ª ┴÷┴ñ╟╥ ╝÷╡╡ └╓┤┘. ┐╣╕ª ╡Θ╛ε, └╠╖▒╜─└╕╖╬ ╟╤
IP ┴╓╝╥┐í ┐⌐╖» └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╡Θ└╗ ╡╣╕«░φ, ┤┘╕Ñ ┴╓╝╥┐í
IP▒Γ╣▌ ╚ñ└║ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╡Θ└╗ ╡╣╕▒ ╝÷ └╓┤┘.</p>
<p>╛ε╢▓ ╝¡╣÷┤┬ ┐⌐╖» └╠╕º└╕╖╬ ┴ó╝╙╟╥ ╝÷ └╓▒µ ╣┘╢⌡┤┘. └╠┤┬
<VirtualHost> ╝╜╝╟ ╛╚┐í <directive
module="core">ServerAlias</directive> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐
░í┤╔╟╧┤┘. ┐╣╕ª ╡Θ╛ε └º└╟ ├╣╣°┬░ <VirtualHost> ║φ╖╧┐í╝¡
<directive module="core">ServerAlias</directive> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧╕Θ
┐¡░┼╟╤ └╠╕º└╕╖╬ ░░└║ └Ñ╗τ└╠╞«╕ª ║╝ ╝÷ └╓┤┘:</p>
<example>
ServerAlias domain.tld *.domain.tld
</example>
<p><code>domain.tld</code> ╡╡╕▐└╬┐í └╓┤┬ ╕≡╡τ ╚ú╜║╞«┐í ┤δ╟╤
┐Σ├╗└╗ <code>www.domain.tld</code> ░í╗≤╚ú╜║╞«░í ╝¡║±╜║╟╤┤┘.
└╠╕º└╗ ┴┘╢º ┐═└╧╡σ─½╡σ ╣«└┌ *┐═ ?╕ª ╗τ┐δ╟╥ ╝÷ └╓┤┘. ╣░╖╨
<code>ServerName</code>└╠│¬ <code>ServerAlias</code>┐í └╠╕º└╗
└√╛ε┴╓╛·┤┘░φ │í└╠ ╛╞┤╧┤┘. ╕╒└· └╠ └╠╕º╡Θ└╠ ╝¡╣÷└╟ IP ┴╓╝╥╖╬
┤δ└└╟╧╡╡╖╧ DNS ╝¡╣÷╕ª ╛╦╕┬░╘ ╝│┴ñ╟╪╛▀ ╟╤┤┘.</p>
<p>╕╢┴÷╕╖└╕╖╬ <code><VirtualHost></code> ╛╚┐í ┤┘╕Ñ
┴÷╜├╛ε╡Θ└╗ ╗τ┐δ╟╧┐⌐ ░í╗≤╚ú╜║╞«╕ª └┌╝╝╚≈ ╝│┴ñ╟╥ ╝÷ └╓┤┘.
┤δ║╬║╨└╟ ┴÷╜├╛ε╕ª ╗τ┐δ╟╥ ╝÷ └╓└╕╕τ, ░ⁿ╖├╡╚ ░í╗≤╚ú╜║╞«└╟ ╝│┴ñ╕╕└╗
║»░µ╟╤┤┘. ╛ε╢▓ ┴÷╜├╛ε░í ╗τ┐δ░í┤╔╟╤┴÷ ╛╦╖┴╕Θ ┴÷╜├╛ε└╟ <a
href="../mod/directive-dict.html#Context">╗τ┐δ└σ╝╥</a>╕ª
╚«└╬╟╧╢≤. (<code><VirtualHost></code> ╛╚└╠ ╛╞┤╤)
<em>┴╓╝¡╣÷╝│┴ñ</em>┐í╝¡ ┴÷┴ñ╟╤ ╝│┴ñ ┴÷╜├╛ε┤┬ ░í╗≤╚ú╜║╞«┐í
░░└║ ╝│┴ñ ┴÷╜├╛ε░í ╛°┤┬ ░µ┐∞┐í╕╕ ╗τ┐δ╡╚┤┘.</p>
<p>┐Σ├╗└╗ ╣▐└╕╕Θ ╝¡╣÷┤┬ ╕╒└· <code>NameVirtualHost</code>┐í╝¡
┴÷┴ñ╟╤ IP ┴╓╝╥└╬┴÷ ░╦╗τ╟╤┤┘. ▒╫╖╕┤┘╕Θ ▒╫ IP ┴╓╝╥╕ª
░í┴° <code><VirtualHost></code> ╝╜╝╟╡Θ┐í╝¡ ┐Σ├╗╟╤
╚ú╜║╞«╕φ░· └╧─í╟╧┤┬ <code>ServerName</code>└╠│¬
<code>ServerAlias</code>╕ª ├ú┤┬┤┘. ├ú└╕╕Θ ▒╫ ╝│┴ñ└╗ ╗τ┐δ╟╤┤┘.
└√└²╟╤ ░í╗≤╚ú╜║╞«╕ª ├ú┴÷╕°╟╧╕Θ, IP ┴╓╝╥┐í ╟╪┤τ╟╧┤┬
<strong>░í╗≤╚ú╜║╞«╡Θ┴▀ ├╣╣°┬░ ░═</strong>└╗ ╗τ┐δ╟╤┤┘.</p>
<p>░ß░·└√└╕╖╬ ├│└╜┐í │¬┐┬ ░í╗≤╚ú╜║╞«░í <em>▒Γ║╗</em>
░í╗≤╚ú╜║╞«░í ╡╚┤┘. IP ┴╓╝╥░í <code>NameVirtualHost</code>
┴÷╜├╛ε┐í ╟╪┤τ╟╧╕Θ, <em>┴╓╝¡╣÷</em>└╟ <code>DocumentRoot</code>┤┬
<strong>└²┤δ╖╬</strong> ╗τ┐δ╟╧┴÷ ╛╩┤┬┤┘. ╞»┴ñ ░í╗≤╚ú╜║╞«┐í
╟╪┤τ╟╧┴÷╛╩┤┬ ┐Σ├╗└╗ ╝│┴ñ╟╧╖┴╕Θ
╝│┴ñ└╗ <code><VirtualHost></code>┐í ┤π░φ ╝│┴ñ╞─└╧┐í╝¡
╕╒└· │¬┐└╡╡╖╧ ╟╧╕Θ ╡╚┤┘.</p>
</section>
<section id="compat"><title>┐└╖í╡╚ ║Ω╢≤┐∞└·┐═ ╚ú╚»</title>
<p>└╠╣╠ └√╛·╡φ└╠ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«░í ┐├╣┘╖╬ ╡┐└█╟╧▒Γ└º╟╪
╟╩┐Σ╟╤ ┴ñ║╕╕ª ║╕│╗┴÷╛╩┤┬ ┼¼╢≤└╠╛≡╞«░í └╓┤┘. └╠╖▒ ┼¼╢≤└╠╛≡╞«┤┬
╟╫╗≤ ┐Σ├╗╟╤ IP ┴╓╝╥┐í ┤δ╟╪ ├╣╣°┬░╖╬ │¬┐└┤┬ ░í╗≤╚ú╜║╞«
(<cite>├╓├╩└╟</cite> └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«)░í
╝¡║±╜║╟╤┤┘.</p>
<note><title>╛≤╕╢│¬ ┐└╖í╡╚ ░═└╗ ╕╗╟╧┤┬░í?</title>
┐⌐▒Γ╝¡ ┐└╖í╡╟╛·└╜└║ ╜╟┴ª╖╬ ╗≤┤τ╚≈ ┐└╖í╡╚ ░═└╗ ╢µ╟╤┤┘.
┐└┤├│» └╠╖▒ ║Ω╢≤┐∞└·╕ª ╗τ┐δ╟╥ └╧└║ ░┼└╟╛°┤┘. ┐Σ┴≥
║Ω╢≤┐∞└·┤┬ ╕≡╡╬ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«┐í ╟╩┐Σ╟╤ <code>Host</code>
╟∞┤⌡╕ª ║╕│╜┤┘.
</note>
<p>└╠ ╣«┴ª┤┬ ╛α░ú ░┼├▀└σ╜║╖┤┴÷╕╕ <directive
module="core">ServerPath</directive> ┴÷╜├╛ε╖╬ ╟╪░ß╟╥ ╝÷ └╓┤┘:</p>
<p>╝│┴ñ ┐╣:</p>
<example>
NameVirtualHost 111.22.33.44<br />
<br />
<VirtualHost 111.22.33.44><br />
<indent>
ServerName www.domain.tld<br />
ServerPath /domain<br />
DocumentRoot /web/domain<br />
</indent>
</VirtualHost><br />
</example>
<p>└╠░╘ ╣½╜╝ ╢µ└╬░í? "<code>/domain</code>"╖╬ ╜├└█╟╧┤┬
URI┐í ┤δ╟╤ ┐Σ├╗└║ ░í╗≤╚ú╜║╞« <code>www.domain.tld</code>░í
╝¡║±╜║╟╤┤┘. ┴∩, <code>Host:</code> ╟∞┤⌡╕ª ║╕│╗┤┬ ┼¼╢≤└╠╛≡╞«┤┬
<code>http://www.domain.tld/</code>╕╕└╕╖╬╡╡ ┴ó▒┘╟╥ ╝÷ └╓┴÷╕╕,
<code>http://www.domain.tld/domain/</code>└╕╖╬┤┬ ╕≡╡τ
┼¼╢≤└╠╛≡╞«░í ╞Σ└╠┴÷┐í ┴ó▒┘╟╥ ╝÷ └╓┤┘.</p>
<p>└╠╕ª └º╟╪ ├╓├╩└╟ ░í╗≤╚ú╜║╞«┐í └╓┤┬ ╞Σ└╠┴÷┐í
<code>http://www.domain.tld/domain/</code>└╕╖╬ ░í┤┬ ╕╡┼⌐╕ª
│╓┤┬┤┘. ▒╫╕«░φ ░í╗≤╚ú╜║╞« ╞Σ└╠┴÷┐í╝¡┤┬ ╗≤┤δ╕╡┼⌐╕╕└╗
╗τ┐δ╟╤┤┘. (┐╣╕ª ╡Θ╛ε, "<code>file.html</code>",
"<code>../icons/image.gif</code>",
"<code>http://www.domain.tld/domain/misc/file.html</code>"└╠│¬
"<code>/domain/misc/file.html</code>"░· ░░└╠ ╛╒┐í
<code>/domain/</code>└╠ ║┘└║ ╕╡┼⌐)</p>
<p>┴╢▒▌ ▒╘─ó└╠ ╟╩┐Σ╟╧┴÷╕╕ └╠ ▒╘─ó└╗ ╡√╕ú╕Θ ┤δ║╬║╨└╟ ░µ┐∞
┐Σ┴≥ ░═└╠│¬ ┐└╖í╡╚ ░═└╠│¬ ░ⁿ░Φ╛°└╠ ╕≡╡τ ║Ω╢≤┐∞└·╖╬ ╞Σ└╠┴÷╕ª
║╝ ╝÷ └╓┤┘.</p>
</section>
</manualpage>