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
/
F253025_examples.xml.ko
< prev
next >
Wrap
Extensible Markup Language
|
2003-05-10
|
18KB
|
581 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.2.2.2 -->
<manualpage metafile="examples.xml.meta">
<parentdocument href="./">░í╗≤╚ú╜║╞«</parentdocument>
<title>░í╗≤╚ú╜║╞« ┐╣</title>
<summary>
<p>└╠ ╣«╝¡┤┬ └┌┴╓ ╣«└╟╡╟┤┬ ░í╗≤╚ú╜║╞«
┴·╣«┐í ┤Σ└╗ ╟╧╖┴░φ ╛▓┐⌐┴│┤┘. ╗≤╚▓└║ <a
href="name-based.html">└╠╕º▒Γ╣▌</a>└╠│¬ <a
href="ip-based.html">IP▒Γ╣▌</a> ░í╗≤╚ú╜║╞«╕ª ┼δ╟╪ ╟╤ ╝¡╣÷┐í╝¡
┐⌐╖» └Ñ╗τ└╠╞«╕ª ╝¡║±╜║╟╧╖┴┤┬ ░µ┐∞└╠┤┘. ╟╤ ╟┴╖╧╜├ ╝¡╣÷ ╡┌┐í╝¡
┐⌐╖» ╝¡╣÷╕ª ╗τ┐δ╟╧┐⌐ ╗τ└╠╞«╕ª ┐ε┐╡╟╧┤┬ ░µ┐∞╕ª ┤┘╖Θ ╣«╝¡╡╡
░≡ │¬┐├ ░═└╠┤┘.</p>
</summary>
<section id="purename"><title>IP ┴╓╝╥ ╟╤░│┐í ┐⌐╖» └╠╕º▒Γ╣▌
└Ñ╗τ└╠╞« ┐ε┐╡╟╧▒Γ.</title>
<p>╝¡╣÷┐í IP ┴╓╝╥░í ╟╤░│ └╓░φ, DNS┐í╝¡ ┐⌐╖» ┴╓╝╥(CNAMES)░í
└╠ ──╟╗┼═╕ª ░í╕«┼▓┤┘. └╠ ──╟╗┼═┐í╝¡ <code>www.example1.com</code>░·
<code>www.example2.org</code>└╟ └Ñ╝¡╣÷╕ª ╜╟╟α╟╧░φ ╜═┤┘.</p>
<note><title>Note</title><p>╛╞╞──í ╝¡╣÷┐í ░í╗≤╚ú╜║╞« ╝│┴ñ└╗
╟╤┤┘░φ ▒╫ ╚ú╜║╞«╕φ┐í ┤δ╟╤ DNS ╟╫╕±└╠ └┌╡┐└╠╖╬ ╗²╝║╡╟┴÷
╛╩┤┬┤┘. <em>╣▌╡σ╜├</em> DNS┐í IP ┴╓╝╥╕ª ░í╕«┼░┤┬
└╠╕º└╠ └╓╛ε╛▀ ╟╤┤┘. ╛╚▒╫╖»╕Θ ╛╞╣½╡╡ └Ñ╗τ└╠╞«╕ª ║╝
╝÷ ╛°┤┘. ░╦╗τ╟╪║╕▒Γ └º╟╪ <code>hosts</code> ╞─└╧┐í ╟╫╕±└╗
├▀░í╟╥ ╝÷ └╓┴÷╕╕, └╠┤┬ hosts ╟╫╕±└╗ ░í┴° ──╟╗┼═┐í╕╕
╣▌┐╡╡╚┤┘.</p>
</note>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
# ╛╞╞──í░í ╞≈╞« 80└╗ ▒Γ┤┘╕░┤┘<br />
Listen 80<br />
<br />
# ╕≡╡τ IP ┴╓╝╥┐í╝¡ ░í╗≤╚ú╜║╞« ┐Σ├╗└╗ ▒Γ┤┘╕░┤┘<br />
NameVirtualHost *<br />
<br />
<VirtualHost *><br />
<indent>
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
<br />
# ┤┘╕Ñ ┴÷╜├╛ε╡Θ╡╡ └╓┤┘<br />
<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost *><br />
<indent>
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
<br />
# ┤┘╕Ñ ┴÷╜├╛ε╡Θ╡╡ └╓┤┘<br />
<br />
</indent>
</VirtualHost>
</example>
<p>║░╟Ñ┤┬ ╕≡╡τ ┴╓╝╥╕ª ░í╕«┼░╣╟╖╬, ┴╓╝¡╣÷┤┬ ╛ε╢▓ ┐Σ├╗╡╡
╝¡║±╜║╟╧┴÷ ╛╩┤┬┤┘. <code>www.example1.com</code>└╠
╝│┴ñ╞─└╧┐í ├│└╜└╕╖╬ │¬┐└╣╟╖╬ ░í└σ │⌠└║ ┐∞╝▒╝°└º╕ª ░í┴÷╕τ,
<cite>▒Γ║╗</cite>╚ñ└║ <cite>├╩▒Γ</cite> ╝¡╣÷░í ╡╚┤┘.
╛ε╢▓ <code>ServerName</code> ┴÷╜├╛ε┐í╡╡ ╟╪┤τ╡╟┴÷╛╩┤┬ ┐Σ├╗└║
├╣╣°┬░ <code>VirtualHost</code>░í ╝¡║±╜║╟╤┤┘.</p>
<note>
<title>┴╓└╟</title>
<p>┐°╟╤┤┘╕Θ <code>*</code> ┤δ╜┼ ╜├╜║┼█└╟ ╜╟┴ª IP
┴╓╝╥╕ª ╗τ┐δ╟╥ ╝÷ └╓┤┘. └╠ ░µ┐∞
<code>VirtualHost</code>└╟ ╛╞▒╘╕╒╞«┤┬
<code>NameVirtualHost</code>└╟ ╛╞▒╘╕╒╞«┐═ └╧─í╟╪╛▀
<em>╟╤┤┘</em>:</p>
<example>
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 172.20.30.40><br />
# ╗²╖½ ...
</example>
<p>▒╫╖»│¬ ISP┐í╝¡ ╡┐└√└╕╖╬ IP ┴╓╝╥╕ª ░í┴«┐└┤┬ ╡ε
IP ┴╓╝╥╕ª ╕≡╕ú┤┬ ░µ┐∞┐í┤┬ <code>*</code>╕ª ╗τ┐δ╟╧┤┬
░═└╠ └»┐δ╟╧┤┘. <code>*</code>┤┬ ╕≡╡τ IP ┴╓╝╥┐í
╟╪┤τ╟╧╣╟╖╬, IP ┴╓╝╥░í ║»░µ╡╟╛ε╡╡ ╝│┴ñ└╗ ║»░µ╟╥
╟╩┐Σ░í ╛°┤┘.</p>
</note>
<p>░┼└╟ ┤δ║╬║╨└╟ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞« ╝│┴ñ└║ └º┐═ ░░┤┘.
┐╣┐▄┤┬ ┤┘╕Ñ IP ┴╓╝╥│¬ ╞≈╞«╖╬ ┤┘╕Ñ │╗┐δ└╗ ╝¡║±╜║╟╧╖┴┤┬
░µ┐∞└╠┤┘.</p>
</section>
<section id="twoips"><title>┐⌐╖» IP ┴╓╝╥┐í╝¡ └╠╕º▒Γ╣▌
╚ú╜║╞«.</title>
<note>
<title>┴╓└╟</title><p>┐⌐▒Γ╝¡ ╝│╕φ╟╤ ╣µ╣²└║ IP ┴╓╝╥░í
╕ε░│╢≤╡╡ └√┐δ░í┤╔╟╧┤┘.</p>
</note>
<p>╝¡╣÷┤┬ IP ┴╓╝╥░í ╡╬░│└╓┤┘. ╟╧│¬┐í╝¡
(<code>172.20.30.40</code>) "┴╓" ╝¡╣÷
<code>server.domain.com</code>└╗ ╝¡║±╜║╟╧░φ, ┤┘╕Ñ ╟╧│¬┐í╝¡
(<code>172.20.30.50</code>) ┐⌐╖» ░í╗≤╚ú╜║╞«╕ª ╝¡║±╜║╟╥
░═└╠┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
Listen 80<br />
<br />
# 172.20.30.40┐í╝¡ ╜╟╟α╟╧┤┬ "┴╓"╝¡╣÷└╠┤┘<br />
ServerName server.domain.com<br />
DocumentRoot /www/mainserver<br />
<br />
# ┤┘╕Ñ ┴╓╝╥┤┘<br />
NameVirtualHost 172.20.30.50<br />
<br />
<VirtualHost 172.20.30.50><br />
<indent>
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
<br />
# ┤┘╕Ñ ┴÷╜├╛ε╡Θ╡╡ └╓┤┘ ...<br />
<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50><br />
<indent>
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
<br />
# ┤┘╕Ñ ┴÷╜├╛ε╡Θ╡╡ └╓┤┘ ...<br />
<br />
</indent>
</VirtualHost>
</example>
<p><code>172.20.30.50</code>└╠ ╛╞┤╤ ┴╓╝╥┐í ┤δ╟╤ ┐Σ├╗└║
┴╓╝¡╣÷░í ╝¡║±╜║╟╤┤┘. ╚ú╜║╞«╕φ ╛°└╠, ┴∩ <code>Host:</code>
╟∞┤⌡╛°└╠ <code>172.20.30.50</code>╖╬ ┐Σ├╗╟╧╕Θ
<code>www.example1.com</code>└╠ ╝¡║±╜║╟╤┤┘.</p>
</section>
<section id="intraextra"><title>(│╗║╬┐═ ┐▄║╬ ┴╓╝╥┐═ ░░└╠)
┤┘╕Ñ IP ┴╓╝╥╖╬ ░░└║ │╗┐δ└╗ ╝¡║±╜║╟╧▒Γ.</title>
<p>╝¡╣÷ ──╟╗┼═┐í IP ┴╓╝╥░í ╡╬░│ (<code>192.168.1.1</code>░·
<code>172.20.30.40</code>) └╓┤┘. ──╟╗┼═┤┬ │╗║╬ (└╬╞«╢≤│▌)
│╫╞«┐≈░· ┐▄║╬ (└╬┼═│▌) │╫╞«┐≈ ╗τ└╠┐í └º─í╟╤┤┘. │╫╞«┐≈ ╣█┐í╝¡
<code>server.example.com</code>└║ ┐▄║╬ ┴╓╝╥╕ª
(<code>172.20.30.40</code>) └╟╣╠╟╧░φ, │╫╞«┐≈ │╗║╬┐í╝¡ ░░└║
└╠╕º└╗ │╗║╬ ┴╓╝╥╖╬ (<code>192.168.1.1</code>) ╗τ┐δ╟╤┤┘.</p>
<p>╝¡╣÷┤┬ <code>VirtualHost</code> ╝╜╝╟ ╟╤░│╖╬ │╗║╬┐═ ┐▄║╬
└└┤Σ┐í ░░└║ │╗┐δ└╗ ╝¡║±╜║╟╥ ╝÷ └╓┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
NameVirtualHost 192.168.1.1<br />
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 192.168.1.1 172.20.30.40><br />
<indent>
DocumentRoot /www/server1<br />
ServerName server.example.com<br />
ServerAlias server<br />
</indent>
</VirtualHost>
</example>
<p>└╠┴ª ╡╬ │╫╞«┐≈┐í╝¡ ╡Θ╛ε┐┬ ┐Σ├╗└╗ ░░└║
<code>VirtualHost</code>┐í╝¡ ╝¡║±╜║╟╤┤┘.</p>
<note>
<title>┴╓└╟:</title><p>│╗║╬ │╫╞«┐≈┐í╝¡┤┬ ┐╧└ⁿ╟╤ ╚ú╜║╞«╕φ
<code>server.example.com</code> ┤δ╜┼ └╠╕º
<code>server</code>╡╡ ░í┤╔╟╧┤┘.</p>
<p>╢╟╟╤ └º└╟ ┐╣┐í╝¡ IP ┴╓╝╥ ┤δ╜┼ <code>*</code>└╗
╗τ┐δ╟╧┐⌐ ╝¡╣÷░í ╕≡╡τ ┴╓╝╥┐í ╡┐└╧╟╧░╘ ╡┐└█╟╥ ╝÷
└╓┤┘.</p>
</note>
</section>
<section id="port"><title>┐⌐╖» ╞≈╞«┐í╝¡ ╝¡╖╬ ┤┘╕Ñ ╗τ└╠╞«
┐ε┐╡╟╧▒Γ.</title>
<p>░░└║ IP└╟ ┐⌐╖» ╞≈╞«┐í╝¡ ╝¡╖╬ ┤┘╕Ñ ╡╡╕▐└╬└╗ ╝¡║±╜║╟╤┤┘░φ
░í┴ñ╟╧└┌. └╠┤┬ "NameVirtualHost" ┼┬▒╫┐í ╞≈╞«╕ª ┴ñ└╟╟╧╕Θ
░í┤╔╟╧┤┘. NameVirtualHost name:port╛°└╠ <VirtualHost
name:port>╕╕ ╚ñ└║ Listen ┴÷╜├╛ε╕╕ ╗τ┐δ╟╧╕Θ ╛╚╡╚┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
Listen 80<br />
Listen 8080<br />
<br />
NameVirtualHost 172.20.30.40:80<br />
NameVirtualHost 172.20.30.40:8080<br />
<br />
<VirtualHost 172.20.30.40:80><br />
<indent>
ServerName www.example1.com<br />
DocumentRoot /www/domain-80<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<indent>
ServerName www.example1.com<br />
DocumentRoot /www/domain-8080<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:80><br />
<indent>
ServerName www.example2.org<br />
DocumentRoot /www/otherdomain-80<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<indent>
ServerName www.example2.org<br />
DocumentRoot /www/otherdomain-8080<br />
</indent>
</VirtualHost>
</example>
</section>
<section id="ip"><title>IP▒Γ╣▌ ░í╗≤╚ú╜║╞«</title>
<p>╝¡╣÷┤┬ ░ó░ó <code>www.example1.com</code>░·
<code>www.example2.org</code>┐í ╟╪┤τ╟╧┤┬ ╡╬ IP ┴╓╝╥╕ª
(<code>172.20.30.40</code>░· <code>172.20.30.50</code>)
░í┴°┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
Listen 80<br />
<br />
<VirtualHost 172.20.30.40><br />
<indent>
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50><br />
<indent>
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
</indent>
</VirtualHost>
</example>
<p><code><VirtualHost></code> ┴÷╜├╛ε╖╬ ┴÷┴ñ╟╤ ┴╓╝╥┐í
╟╪┤τ╟╧┴÷╛╩┤┬ ┴╓╝╥╖╬ (┐╣╕ª ╡Θ╛ε, <code>localhost</code>)
┐Σ├╗└╠ ╡Θ╛ε┐└╕Θ ┴╓╝¡╣÷░í └╓┤┬ ░µ┐∞ ┴╓╝¡╣÷░í ╝¡║±╜║╟╤┤┘.</p>
</section>
<section id="ipport"><title>╞≈╞«▒Γ╣▌░· ip▒Γ╣▌└╠ ╚Ñ╟╒╡╚
░í╗≤╚ú╜║╞«</title>
<p>╝¡╣÷┤┬ ░ó░ó <code>www.example1.com</code>░·
<code>www.example2.org</code>┐í ╟╪┤τ╟╧┤┬ ╡╬ IP ┴╓╝╥╕ª
(<code>172.20.30.40</code>░· <code>172.20.30.50</code>)
░í┴°┤┘. ░ó IP└╟ 80╣°░· 8080╣° ╞≈╞«┐í ░í╗≤╚ú╜║╞«╕ª ╡╣╕░┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
Listen 172.20.30.40:80<br />
Listen 172.20.30.40:8080<br />
Listen 172.20.30.50:80<br />
Listen 172.20.30.50:8080<br />
<br />
<VirtualHost 172.20.30.40:80><br />
<indent>
DocumentRoot /www/example1-80<br />
ServerName www.example1.com<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<indent>
DocumentRoot /www/example1-8080<br />
ServerName www.example1.com<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50:80><br />
<indent>
DocumentRoot /www/example2-80<br />
ServerName www.example1.org<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50:8080><br />
<indent>
DocumentRoot /www/example2-8080<br />
ServerName www.example2.org<br />
</indent>
</VirtualHost>
</example>
</section>
<section id="mixed"><title>└╠╕º▒Γ╣▌░· IP▒Γ╣▌└╠ ╚Ñ╟╒╡╚
░í╗≤╚ú╜║╞«</title>
<p>┴╓╝╥┴▀ ╕ε╕ε└║ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╖╬, ┤┘╕Ñ ░═└║ IP▒Γ╣▌
░í╗≤╚ú╜║╞«╖╬ ╝¡║±╜║╟╧░φ ╜═┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
Listen 80<br />
<br />
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 172.20.30.40><br />
<indent>
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<indent>
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<indent>
DocumentRoot /www/example3<br />
ServerName www.example3.net<br />
</indent>
</VirtualHost><br />
<br />
# IP-▒Γ╣▌<br />
<VirtualHost 172.20.30.50><br />
<indent>
DocumentRoot /www/example4<br />
ServerName www.example4.edu<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.60><br />
<indent>
DocumentRoot /www/example5<br />
ServerName www.example5.gov<br />
</indent>
</VirtualHost>
</example>
</section>
<section id="default"><title><code>_default_</code> ░í╗≤╚ú╜║╞«
╗τ┐δ╟╧▒Γ</title>
<section id="defaultallports"><title>╕≡╡τ ╞≈╞«┐í ┤δ╟╤
<code>_default_</code> ░í╗≤╚ú╜║╞«</title>
<p>╛ε╢▓ ░í╗≤╚ú╜║╞«┐í╡╡ ╟╪┤τ╟╧┴÷╛╩└║ IP ┴╓╝╥┐═ ╞≈╞«┐í ┤δ╟╤
<em>╕≡╡τ</em> ┐Σ├╗└╗ ├│╕«╟╧▒Γ.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
<VirtualHost _default_:*><br />
<indent>
DocumentRoot /www/default<br />
</indent>
</VirtualHost>
</example>
<p>default(▒Γ║╗) ░í╗≤╚ú╜║╞«└╟ ╞≈╞«╖╬ ┐═└╧╡σ─½╡σ╕ª ╗τ┐δ╟╧┐⌐ ╛ε╢▓ ┐Σ├╗╡╡
┴╓╝¡╣÷╖╬ ╕°░í╡╡╖╧ ╕╕╡τ┤┘.</p>
<p>default ░í╗≤╚ú╜║╞«┤┬ └²┤δ╖╬ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«░í ╗τ┐δ╟╧┤┬
┴╓╝╥/╞≈╞«╖╬└╟ ┐Σ├╗└╗ ╝¡║±╜║╟╧┴÷ ╛╩┤┬┤┘. ╛╦ ╝÷ ╛°░┼│¬
<code>Host:</code> ╟∞┤⌡░í ╗²╖½╡╚ ┐Σ├╗└║ ╟╫╗≤ ├╓├╩└╟ └╠╕º▒Γ╣▌
░í╗≤╚ú╜║╞«(╝│┴ñ╞─└╧┐í╝¡
┴╓╝╥/╞≈╞«░í ├│└╜└╕╖╬ │¬┐┬ ░í╗≤╚ú╜║╞«)░í ╝¡║±╜║╟╤┤┘.</p>
<p><directive module="mod_alias">AliasMatch</directive>│¬
<directive module="mod_rewrite">RewriteRule</directive>└╗
╗τ┐δ╟╧┐⌐ ╛ε╢▓ ┐Σ├╗└╗ ╞»┴ñ ╞Σ└╠┴÷(╚ñ└║ ╜║┼⌐╕│╞«)╖╬
└τ└█╝║╟╥(rewrite) ╝÷ └╓┤┘.</p>
</section>
<section id="defaultdifferentports"><title>┐⌐╖» ╞≈╞«┐í ┤δ╟╤
<code>_default_</code> ░í╗≤╚ú╜║╞«</title>
<p>└º└╟ ░µ┐∞┐═ ░░┴÷╕╕, ╝¡╣÷┤┬ ┐⌐╖» ╞≈╞«╕ª ▒Γ┤┘╕«░φ 80╣°
╞≈╞«┐í ┤δ╟╪╝¡ ├▀░í╖╬ <code>_default_</code> ░í╗≤╚ú╜║╞«╕ª
╗τ┐δ╟╧░φ ╜═┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
<VirtualHost _default_:80><br />
<indent>
DocumentRoot /www/default80<br />
# ...<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost _default_:*><br />
<indent>
DocumentRoot /www/default<br />
# ...<br />
</indent>
</VirtualHost>
</example>
<p>80╣° ╞≈╞«┐í ┤δ╟╤ default ░í╗≤╚ú╜║╞«┤┬ (<em>╣▌╡σ╜├</em>
┐═└╧╡σ─½╡σ ╞≈╞«╕ª ░í┴° ▒Γ║╗ ░í╗≤╚ú╜║╞« └╠└ⁿ┐í │¬┐═╛▀ ╟╤┤┘)
┴÷┴ñ╟╧┴÷╛╩└║ IP ┴╓╝╥╖╬ ║╕│╗┴° ╕≡╡τ ┐Σ├╗└╗ ╝¡║±╜║╟╤┤┘.
┴╓╝¡╣÷┤┬ └²┤δ╖╬ ┐Σ├╗└╗ ╝¡║±╜║╟╧┴÷ ╕°╟╤┤┘.</p>
</section>
<section id="defaultoneport"><title>╟╤ ╞≈╞«┐í ┤δ╟╤
<code>_default_</code> ░í╗≤╚ú╜║╞«</title>
<p>80╣° ╞≈╞«┐í ┤δ╟╪╝¡╕╕ default ░í╗≤╚ú╜║╞«╕ª ╕╕╡Θ░φ ╜═┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
<VirtualHost _default_:80><br />
DocumentRoot /www/default<br />
...<br />
</VirtualHost>
</example>
<p>╞≈╞« 80╣°┐í ┴÷┴ñ╟╧┴÷╛╩└║ ┴╓╝╥┐í ┤δ╟╤ ┐Σ├╗└║ ▒Γ║╗
░í╗≤╚ú╜║╞«░í ╝¡║±╜║╟╧░φ, ┤┘╕Ñ ┴÷┴ñ╟╧┴÷╛╩└║ ┴╓╝╥┐═ ╞≈╞«╕ª
░í┴° ┐Σ├╗└║ ┴╓ ╝¡╣÷░í ╝¡║±╜║╟╤┤┘.</p>
</section>
</section>
<section id="migrate"><title>└╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª IP▒Γ╣▌
░í╗≤╚ú╜║╞«╖╬ ┐┼▒Γ▒Γ</title>
<p>(<a href="#name">└╠╕º▒Γ╣▌</a>└╟ ├╣╣°┬░ ┐╣┐í╝¡) ╚ú╜║╞«╕φ
<code>www.example2.org</code>┐í ┤δ╟╤ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«┤┬
└┌╜┼└╟ IP ┴╓╝╥╕ª ░í┴«╛▀ ╟╤┤┘. └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«└╟ └╠└ⁿ
IP ┴╓╝╥╕ª ─│╜╠╟╧┤┬ │╫└╙╝¡╣÷│¬ ╟┴╖╧╜├┐═└╟ ╣«┴ª╕ª ╟╟╟╧▒Γ└º╟╪
┐┼▒Γ┤┬ ╡┐╛╚ ╡╤ ╕≡╡╬╕ª ╝¡║±╜║╟╧░φ ╜═┤┘.<br /> ╣µ╣²└║
<code>VirtualHost</code> ┴÷╜├╛ε┐í ╗⌡ IP ┴╓╝╥╕╕└╗
(<code>172.20.30.50</code>) ├▀░í╟╧╕Θ╡╟╣╟╖╬ ╜▒┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
Listen 80<br />
ServerName www.example1.com<br />
DocumentRoot /www/example1<br />
<br />
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 172.20.30.40 172.20.30.50><br />
<indent>
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
# ...<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<indent>
DocumentRoot /www/example3<br />
ServerName www.example3.net<br />
ServerAlias *.example3.net<br />
# ...<br />
</indent>
</VirtualHost>
</example>
<p>└╠┴ª (IP▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ┼δ╟╤) ╗⌡╖╬┐ε ┴╓╝╥┐═ (└╠╕º▒Γ╣▌
░í╗≤╚ú╜║╞«╕ª ┼δ╟╤) └╠└ⁿ ┴╓╝╥ ╕≡╡╬ ░í╗≤╚ú╜║╞«┐í ┴ó▒┘╟╥
╝÷ └╓┤┘.</p>
</section>
<section id="serverpath"><title><code>ServerPath</code>
┴÷╜├╛ε ╗τ┐δ╟╧▒Γ</title>
<p>╡╬ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ░í┴° ╝¡╣÷░í └╓┤┘. ┐├╣┘╕Ñ
░í╗≤╚ú╜║╞«╕ª ╝▒┼├╟╧▒Γ└º╟╪ ┼¼╢≤└╠╛≡╞«┤┬ ┐├╣┘╕Ñ
<code>Host:</code> ╟∞┤⌡╕ª ║╕│╗╛▀ ╟╤┤┘. ┐└╖í╡╚ HTTP/1.0
┼¼╢≤└╠╛≡╞«░í └╠ ╟∞┤⌡╕ª ║╕│╗┴÷ ╕°╟╧╕Θ ╛╞╞──í┤┬ ┼¼╢≤└╠╛≡╞«░í
╛ε╢▓ ░í╗≤╚ú╜║╞«╕ª ║╕╖┴░φ╟╧┤┬┴÷ ╛╦ ╝÷ ╛°┤┘ (▒╫╖í╝¡ ├╓├╩└╟
░í╗≤╚ú╜║╞«░í ┐Σ├╗└╗ ╝¡║±╜║╟╤┤┘). ┐└╖í╡╚ ║Ω╢≤┐∞└·┐═ ░í┤╔╟╤ ╚ú╚»└╗
└»┴÷╟╧▒Γ└º╟╪ ├╓├╩└╟ ░í╗≤╚ú╜║╞«╕ª ╕╕╡Θ░φ, ┐⌐▒Γ┐í └╠╕º▒Γ╣▌
░í╗≤╚ú╜║╞«└╟ URL ┴ó╡╬╗τ╕ª ╞≈╟╘╟╧┤┬ ╕╡┼⌐ ╕±╖╧ ╞Σ└╠┴÷╕ª
╡╨┤┘.</p>
<example>
<title>╝¡╣÷ ╝│┴ñ</title>
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 172.20.30.40><br />
<indent>
# primary vhost<br />
DocumentRoot /www/subdomain<br />
RewriteEngine On<br />
RewriteRule ^/.* /www/subdomain/index.html<br />
# ...<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
DocumentRoot /www/subdomain/sub1<br />
<indent>
ServerName www.sub1.domain.tld<br />
ServerPath /sub1/<br />
RewriteEngine On<br />
RewriteRule ^(/sub1/.*) /www/subdomain$1<br />
# ...<br />
</indent>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<indent>
DocumentRoot /www/subdomain/sub2<br />
ServerName www.sub2.domain.tld<br />
ServerPath /sub2/<br />
RewriteEngine On<br />
RewriteRule ^(/sub2/.*) /www/subdomain$1<br />
# ...<br />
</indent>
</VirtualHost>
</example>
<p><directive module="core">ServerPath</directive> ┴÷╜├╛ε╢º╣«┐í
URL <code>http://www.sub1.domain.tld/sub1/</code>┐í ┤δ╟╤
┐Σ├╗└║ <em>╟╫╗≤</em> subl-░í╗≤╚ú╜║╞«░í ╝¡║±╜║╟╤┤┘.<br />
┼¼╢≤└╠╛≡╞«░í ┐├╣┘╕Ñ <code>Host:</code> ╟∞┤⌡╕ª ║╕│╜┤┘╕Θ,
URL <code>http://www.sub1.domain.tld/</code>┐í ┤δ╟╤ ┐Σ├╗└║
subl-░í╗≤╚ú╜║╞«┐í╝¡╕╕ ╝¡║±╜║╟╤┤┘. ╕╕╛α <code>Host:</code> ╟∞┤⌡╕ª
║╕│╗┴÷╛╩└╕╕Θ ┼¼╢≤└╠╛≡╞«┤┬ ├╓├╩└╟ ╚ú╜║╞«┐í └╓┤┬ ┴ñ║╕╞Σ└╠┴÷╕ª
║╕░╘╡╚┤┘.<br /> ┐⌐▒Γ┐í ╣«┴ª░í └╓└╜└╗ ┴╓└╟╟╧╢≤: ┼¼╢≤└╠╛≡╞«░í
<code>Host:</code> ╟∞┤⌡╕ª ║╕│╗┴÷╛╩└╕╕Θ
<code>http://www.sub2.domain.tld/sub1/</code>┐í ┤δ╟╤ ┐Σ├╗╡╡
subl-░í╗≤╚ú╜║╞«░í ╝¡║±╜║╟╤┤┘.<br />
<directive module="mod_rewrite">RewriteRule</directive>
┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ ┐├╣┘╕Ñ <code>Host:</code> ╟∞┤⌡╕ª ║╕│╗┤┬
┼¼╢≤└╠╛≡╞«┤┬ (<em>┐╣╕ª ╡Θ╛ε</em>, URL └ⁿ─í╗τ░í └╓░┼│¬ ╛°┤┬)
╡╬ URL└╗ ╕≡╡╬ ╗τ┐δ╟╥ ╝÷ └╓┤┘.</p>
</section>
</manualpage>