home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2004 May
/
Gamestar_62_2004-05_dvd.iso
/
Programy
/
apache_2.0.48-win32-x86-no_ssl.msi
/
Data.Cab
/
F253000_examples.html.ko.euckr
< prev
next >
Wrap
Extensible Markup Language
|
2003-05-29
|
23KB
|
618 lines
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>░í╗≤╚ú╜║╞« ┐╣ - Apache HTTP Server</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p>
<p class="apache">Apache HTTP Server Version 2.0</p>
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.0</a> > <a href="./">░í╗≤╚ú╜║╞«</a></div><div id="page-content"><div id="preamble"><h1>░í╗≤╚ú╜║╞« ┐╣</h1>
<div class="toplang">
<p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ko/vhosts/examples.html" title="Korean"> ko </a></p>
</div>
<p>└╠ ╣«╝¡┤┬ └┌┴╓ ╣«└╟╡╟┤┬ ░í╗≤╚ú╜║╞«
┴·╣«┐í ┤Σ└╗ ╟╧╖┴░φ ╛▓┐⌐┴│┤┘. ╗≤╚▓└║ <a href="name-based.html">└╠╕º▒Γ╣▌</a>└╠│¬ <a href="ip-based.html">IP▒Γ╣▌</a> ░í╗≤╚ú╜║╞«╕ª ┼δ╟╪ ╟╤ ╝¡╣÷┐í╝¡
┐⌐╖» └Ñ╗τ└╠╞«╕ª ╝¡║±╜║╟╧╖┴┤┬ ░µ┐∞└╠┤┘. ╟╤ ╟┴╖╧╜├ ╝¡╣÷ ╡┌┐í╝¡
┐⌐╖» ╝¡╣÷╕ª ╗τ┐δ╟╧┐⌐ ╗τ└╠╞«╕ª ┐ε┐╡╟╧┤┬ ░µ┐∞╕ª ┤┘╖Θ ╣«╝¡╡╡
░≡ │¬┐├ ░═└╠┤┘.</p>
</div>
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#purename">IP ┴╓╝╥ ╟╤░│┐í ┐⌐╖» └╠╕º▒Γ╣▌
└Ñ╗τ└╠╞« ┐ε┐╡╟╧▒Γ.</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#twoips">┐⌐╖» IP ┴╓╝╥┐í╝¡ └╠╕º▒Γ╣▌
╚ú╜║╞«.</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#intraextra">(│╗║╬┐═ ┐▄║╬ ┴╓╝╥┐═ ░░└╠)
┤┘╕Ñ IP ┴╓╝╥╖╬ ░░└║ │╗┐δ└╗ ╝¡║±╜║╟╧▒Γ.</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#port">┐⌐╖» ╞≈╞«┐í╝¡ ╝¡╖╬ ┤┘╕Ñ ╗τ└╠╞«
┐ε┐╡╟╧▒Γ.</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#ip">IP▒Γ╣▌ ░í╗≤╚ú╜║╞«</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#ipport">╞≈╞«▒Γ╣▌░· ip▒Γ╣▌└╠ ╚Ñ╟╒╡╚
░í╗≤╚ú╜║╞«</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#mixed">└╠╕º▒Γ╣▌░· IP▒Γ╣▌└╠ ╚Ñ╟╒╡╚
░í╗≤╚ú╜║╞«</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#default"><code>_default_</code> ░í╗≤╚ú╜║╞«
╗τ┐δ╟╧▒Γ</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#migrate">└╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª IP▒Γ╣▌
░í╗≤╚ú╜║╞«╖╬ ┐┼▒Γ▒Γ</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#serverpath"><code>ServerPath</code>
┴÷╜├╛ε ╗τ┐δ╟╧▒Γ</a></li>
</ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="purename" id="purename">IP ┴╓╝╥ ╟╤░│┐í ┐⌐╖» └╠╕º▒Γ╣▌
└Ñ╗τ└╠╞« ┐ε┐╡╟╧▒Γ.</a></h2>
<p>╝¡╣÷┐í IP ┴╓╝╥░í ╟╤░│ └╓░φ, DNS┐í╝¡ ┐⌐╖» ┴╓╝╥(CNAMES)░í
└╠ ──╟╗┼═╕ª ░í╕«┼▓┤┘. └╠ ──╟╗┼═┐í╝¡ <code>www.example1.com</code>░·
<code>www.example2.org</code>└╟ └Ñ╝¡╣÷╕ª ╜╟╟α╟╧░φ ╜═┤┘.</p>
<div class="note"><h3>Note</h3><p>╛╞╞──í ╝¡╣÷┐í ░í╗≤╚ú╜║╞« ╝│┴ñ└╗
╟╤┤┘░φ ▒╫ ╚ú╜║╞«╕φ┐í ┤δ╟╤ DNS ╟╫╕±└╠ └┌╡┐└╠╖╬ ╗²╝║╡╟┴÷
╛╩┤┬┤┘. <em>╣▌╡σ╜├</em> DNS┐í IP ┴╓╝╥╕ª ░í╕«┼░┤┬
└╠╕º└╠ └╓╛ε╛▀ ╟╤┤┘. ╛╚▒╫╖»╕Θ ╛╞╣½╡╡ └Ñ╗τ└╠╞«╕ª ║╝
╝÷ ╛°┤┘. ░╦╗τ╟╪║╕▒Γ └º╟╪ <code>hosts</code> ╞─└╧┐í ╟╫╕±└╗
├▀░í╟╥ ╝÷ └╓┴÷╕╕, └╠┤┬ hosts ╟╫╕±└╗ ░í┴° ──╟╗┼═┐í╕╕
╣▌┐╡╡╚┤┘.</p>
</div>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
# ╛╞╞──í░í ╞≈╞« 80└╗ ▒Γ┤┘╕░┤┘<br />
Listen 80<br />
<br />
# ╕≡╡τ IP ┴╓╝╥┐í╝¡ ░í╗≤╚ú╜║╞« ┐Σ├╗└╗ ▒Γ┤┘╕░┤┘<br />
NameVirtualHost *<br />
<br />
<VirtualHost *><br />
<span class="indent">
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
<br />
# ┤┘╕Ñ ┴÷╜├╛ε╡Θ╡╡ └╓┤┘<br />
<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost *><br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
<br />
# ┤┘╕Ñ ┴÷╜├╛ε╡Θ╡╡ └╓┤┘<br />
<br />
</span>
</VirtualHost>
</code></p></div>
<p>║░╟Ñ┤┬ ╕≡╡τ ┴╓╝╥╕ª ░í╕«┼░╣╟╖╬, ┴╓╝¡╣÷┤┬ ╛ε╢▓ ┐Σ├╗╡╡
╝¡║±╜║╟╧┴÷ ╛╩┤┬┤┘. <code>www.example1.com</code>└╠
╝│┴ñ╞─└╧┐í ├│└╜└╕╖╬ │¬┐└╣╟╖╬ ░í└σ │⌠└║ ┐∞╝▒╝°└º╕ª ░í┴÷╕τ,
<cite>▒Γ║╗</cite>╚ñ└║ <cite>├╩▒Γ</cite> ╝¡╣÷░í ╡╚┤┘.
╛ε╢▓ <code>ServerName</code> ┴÷╜├╛ε┐í╡╡ ╟╪┤τ╡╟┴÷╛╩┤┬ ┐Σ├╗└║
├╣╣°┬░ <code>VirtualHost</code>░í ╝¡║±╜║╟╤┤┘.</p>
<div class="note">
<h3>┴╓└╟</h3>
<p>┐°╟╤┤┘╕Θ <code>*</code> ┤δ╜┼ ╜├╜║┼█└╟ ╜╟┴ª IP
┴╓╝╥╕ª ╗τ┐δ╟╥ ╝÷ └╓┤┘. └╠ ░µ┐∞
<code>VirtualHost</code>└╟ ╛╞▒╘╕╒╞«┤┬
<code>NameVirtualHost</code>└╟ ╛╞▒╘╕╒╞«┐═ └╧─í╟╪╛▀
<em>╟╤┤┘</em>:</p>
<div class="example"><p><code>
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 172.20.30.40><br />
# ╗²╖½ ...
</code></p></div>
<p>▒╫╖»│¬ ISP┐í╝¡ ╡┐└√└╕╖╬ IP ┴╓╝╥╕ª ░í┴«┐└┤┬ ╡ε
IP ┴╓╝╥╕ª ╕≡╕ú┤┬ ░µ┐∞┐í┤┬ <code>*</code>╕ª ╗τ┐δ╟╧┤┬
░═└╠ └»┐δ╟╧┤┘. <code>*</code>┤┬ ╕≡╡τ IP ┴╓╝╥┐í
╟╪┤τ╟╧╣╟╖╬, IP ┴╓╝╥░í ║»░µ╡╟╛ε╡╡ ╝│┴ñ└╗ ║»░µ╟╥
╟╩┐Σ░í ╛°┤┘.</p>
</div>
<p>░┼└╟ ┤δ║╬║╨└╟ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞« ╝│┴ñ└║ └º┐═ ░░┤┘.
┐╣┐▄┤┬ ┤┘╕Ñ IP ┴╓╝╥│¬ ╞≈╞«╖╬ ┤┘╕Ñ │╗┐δ└╗ ╝¡║±╜║╟╧╖┴┤┬
░µ┐∞└╠┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="twoips" id="twoips">┐⌐╖» IP ┴╓╝╥┐í╝¡ └╠╕º▒Γ╣▌
╚ú╜║╞«.</a></h2>
<div class="note">
<h3>┴╓└╟</h3><p>┐⌐▒Γ╝¡ ╝│╕φ╟╤ ╣µ╣²└║ IP ┴╓╝╥░í
╕ε░│╢≤╡╡ └√┐δ░í┤╔╟╧┤┘.</p>
</div>
<p>╝¡╣÷┤┬ IP ┴╓╝╥░í ╡╬░│└╓┤┘. ╟╧│¬┐í╝¡
(<code>172.20.30.40</code>) "┴╓" ╝¡╣÷
<code>server.domain.com</code>└╗ ╝¡║±╜║╟╧░φ, ┤┘╕Ñ ╟╧│¬┐í╝¡
(<code>172.20.30.50</code>) ┐⌐╖» ░í╗≤╚ú╜║╞«╕ª ╝¡║±╜║╟╥
░═└╠┤┘.</p>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
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 />
<span class="indent">
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
<br />
# ┤┘╕Ñ ┴÷╜├╛ε╡Θ╡╡ └╓┤┘ ...<br />
<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50><br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
<br />
# ┤┘╕Ñ ┴÷╜├╛ε╡Θ╡╡ └╓┤┘ ...<br />
<br />
</span>
</VirtualHost>
</code></p></div>
<p><code>172.20.30.50</code>└╠ ╛╞┤╤ ┴╓╝╥┐í ┤δ╟╤ ┐Σ├╗└║
┴╓╝¡╣÷░í ╝¡║±╜║╟╤┤┘. ╚ú╜║╞«╕φ ╛°└╠, ┴∩ <code>Host:</code>
╟∞┤⌡╛°└╠ <code>172.20.30.50</code>╖╬ ┐Σ├╗╟╧╕Θ
<code>www.example1.com</code>└╠ ╝¡║±╜║╟╤┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="intraextra" id="intraextra">(│╗║╬┐═ ┐▄║╬ ┴╓╝╥┐═ ░░└╠)
┤┘╕Ñ IP ┴╓╝╥╖╬ ░░└║ │╗┐δ└╗ ╝¡║±╜║╟╧▒Γ.</a></h2>
<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>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
NameVirtualHost 192.168.1.1<br />
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 192.168.1.1 172.20.30.40><br />
<span class="indent">
DocumentRoot /www/server1<br />
ServerName server.example.com<br />
ServerAlias server<br />
</span>
</VirtualHost>
</code></p></div>
<p>└╠┴ª ╡╬ │╫╞«┐≈┐í╝¡ ╡Θ╛ε┐┬ ┐Σ├╗└╗ ░░└║
<code>VirtualHost</code>┐í╝¡ ╝¡║±╜║╟╤┤┘.</p>
<div class="note">
<h3>┴╓└╟:</h3><p>│╗║╬ │╫╞«┐≈┐í╝¡┤┬ ┐╧└ⁿ╟╤ ╚ú╜║╞«╕φ
<code>server.example.com</code> ┤δ╜┼ └╠╕º
<code>server</code>╡╡ ░í┤╔╟╧┤┘.</p>
<p>╢╟╟╤ └º└╟ ┐╣┐í╝¡ IP ┴╓╝╥ ┤δ╜┼ <code>*</code>└╗
╗τ┐δ╟╧┐⌐ ╝¡╣÷░í ╕≡╡τ ┴╓╝╥┐í ╡┐└╧╟╧░╘ ╡┐└█╟╥ ╝÷
└╓┤┘.</p>
</div>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="port" id="port">┐⌐╖» ╞≈╞«┐í╝¡ ╝¡╖╬ ┤┘╕Ñ ╗τ└╠╞«
┐ε┐╡╟╧▒Γ.</a></h2>
<p>░░└║ IP└╟ ┐⌐╖» ╞≈╞«┐í╝¡ ╝¡╖╬ ┤┘╕Ñ ╡╡╕▐└╬└╗ ╝¡║±╜║╟╤┤┘░φ
░í┴ñ╟╧└┌. └╠┤┬ "NameVirtualHost" ┼┬▒╫┐í ╞≈╞«╕ª ┴ñ└╟╟╧╕Θ
░í┤╔╟╧┤┘. NameVirtualHost name:port╛°└╠ <VirtualHost
name:port>╕╕ ╚ñ└║ Listen ┴÷╜├╛ε╕╕ ╗τ┐δ╟╧╕Θ ╛╚╡╚┤┘.</p>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
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 />
<span class="indent">
ServerName www.example1.com<br />
DocumentRoot /www/domain-80<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<span class="indent">
ServerName www.example1.com<br />
DocumentRoot /www/domain-8080<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:80><br />
<span class="indent">
ServerName www.example2.org<br />
DocumentRoot /www/otherdomain-80<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<span class="indent">
ServerName www.example2.org<br />
DocumentRoot /www/otherdomain-8080<br />
</span>
</VirtualHost>
</code></p></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="ip" id="ip">IP▒Γ╣▌ ░í╗≤╚ú╜║╞«</a></h2>
<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>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
Listen 80<br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="indent">
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50><br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
</span>
</VirtualHost>
</code></p></div>
<p><code><VirtualHost></code> ┴÷╜├╛ε╖╬ ┴÷┴ñ╟╤ ┴╓╝╥┐í
╟╪┤τ╟╧┴÷╛╩┤┬ ┴╓╝╥╖╬ (┐╣╕ª ╡Θ╛ε, <code>localhost</code>)
┐Σ├╗└╠ ╡Θ╛ε┐└╕Θ ┴╓╝¡╣÷░í └╓┤┬ ░µ┐∞ ┴╓╝¡╣÷░í ╝¡║±╜║╟╤┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="ipport" id="ipport">╞≈╞«▒Γ╣▌░· ip▒Γ╣▌└╠ ╚Ñ╟╒╡╚
░í╗≤╚ú╜║╞«</a></h2>
<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>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
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 />
<span class="indent">
DocumentRoot /www/example1-80<br />
ServerName www.example1.com<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<span class="indent">
DocumentRoot /www/example1-8080<br />
ServerName www.example1.com<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50:80><br />
<span class="indent">
DocumentRoot /www/example2-80<br />
ServerName www.example1.org<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50:8080><br />
<span class="indent">
DocumentRoot /www/example2-8080<br />
ServerName www.example2.org<br />
</span>
</VirtualHost>
</code></p></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="mixed" id="mixed">└╠╕º▒Γ╣▌░· IP▒Γ╣▌└╠ ╚Ñ╟╒╡╚
░í╗≤╚ú╜║╞«</a></h2>
<p>┴╓╝╥┴▀ ╕ε╕ε└║ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╖╬, ┤┘╕Ñ ░═└║ IP▒Γ╣▌
░í╗≤╚ú╜║╞«╖╬ ╝¡║±╜║╟╧░φ ╜═┤┘.</p>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
Listen 80<br />
<br />
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="indent">
DocumentRoot /www/example1<br />
ServerName www.example1.com<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="indent">
DocumentRoot /www/example3<br />
ServerName www.example3.net<br />
</span>
</VirtualHost><br />
<br />
# IP-▒Γ╣▌<br />
<VirtualHost 172.20.30.50><br />
<span class="indent">
DocumentRoot /www/example4<br />
ServerName www.example4.edu<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.60><br />
<span class="indent">
DocumentRoot /www/example5<br />
ServerName www.example5.gov<br />
</span>
</VirtualHost>
</code></p></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="default" id="default"><code>_default_</code> ░í╗≤╚ú╜║╞«
╗τ┐δ╟╧▒Γ</a></h2>
<h3><a name="defaultallports" id="defaultallports">╕≡╡τ ╞≈╞«┐í ┤δ╟╤
<code>_default_</code> ░í╗≤╚ú╜║╞«</a></h3>
<p>╛ε╢▓ ░í╗≤╚ú╜║╞«┐í╡╡ ╟╪┤τ╟╧┴÷╛╩└║ IP ┴╓╝╥┐═ ╞≈╞«┐í ┤δ╟╤
<em>╕≡╡τ</em> ┐Σ├╗└╗ ├│╕«╟╧▒Γ.</p>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
<VirtualHost _default_:*><br />
<span class="indent">
DocumentRoot /www/default<br />
</span>
</VirtualHost>
</code></p></div>
<p>default(▒Γ║╗) ░í╗≤╚ú╜║╞«└╟ ╞≈╞«╖╬ ┐═└╧╡σ─½╡σ╕ª ╗τ┐δ╟╧┐⌐ ╛ε╢▓ ┐Σ├╗╡╡
┴╓╝¡╣÷╖╬ ╕°░í╡╡╖╧ ╕╕╡τ┤┘.</p>
<p>default ░í╗≤╚ú╜║╞«┤┬ └²┤δ╖╬ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«░í ╗τ┐δ╟╧┤┬
┴╓╝╥/╞≈╞«╖╬└╟ ┐Σ├╗└╗ ╝¡║±╜║╟╧┴÷ ╛╩┤┬┤┘. ╛╦ ╝÷ ╛°░┼│¬
<code>Host:</code> ╟∞┤⌡░í ╗²╖½╡╚ ┐Σ├╗└║ ╟╫╗≤ ├╓├╩└╟ └╠╕º▒Γ╣▌
░í╗≤╚ú╜║╞«(╝│┴ñ╞─└╧┐í╝¡
┴╓╝╥/╞≈╞«░í ├│└╜└╕╖╬ │¬┐┬ ░í╗≤╚ú╜║╞«)░í ╝¡║±╜║╟╤┤┘.</p>
<p><code class="directive"><a href="../mod/mod_alias.html#aliasmatch">AliasMatch</a></code>│¬
<code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code>└╗
╗τ┐δ╟╧┐⌐ ╛ε╢▓ ┐Σ├╗└╗ ╞»┴ñ ╞Σ└╠┴÷(╚ñ└║ ╜║┼⌐╕│╞«)╖╬
└τ└█╝║╟╥(rewrite) ╝÷ └╓┤┘.</p>
<h3><a name="defaultdifferentports" id="defaultdifferentports">┐⌐╖» ╞≈╞«┐í ┤δ╟╤
<code>_default_</code> ░í╗≤╚ú╜║╞«</a></h3>
<p>└º└╟ ░µ┐∞┐═ ░░┴÷╕╕, ╝¡╣÷┤┬ ┐⌐╖» ╞≈╞«╕ª ▒Γ┤┘╕«░φ 80╣°
╞≈╞«┐í ┤δ╟╪╝¡ ├▀░í╖╬ <code>_default_</code> ░í╗≤╚ú╜║╞«╕ª
╗τ┐δ╟╧░φ ╜═┤┘.</p>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
<VirtualHost _default_:80><br />
<span class="indent">
DocumentRoot /www/default80<br />
# ...<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost _default_:*><br />
<span class="indent">
DocumentRoot /www/default<br />
# ...<br />
</span>
</VirtualHost>
</code></p></div>
<p>80╣° ╞≈╞«┐í ┤δ╟╤ default ░í╗≤╚ú╜║╞«┤┬ (<em>╣▌╡σ╜├</em>
┐═└╧╡σ─½╡σ ╞≈╞«╕ª ░í┴° ▒Γ║╗ ░í╗≤╚ú╜║╞« └╠└ⁿ┐í │¬┐═╛▀ ╟╤┤┘)
┴÷┴ñ╟╧┴÷╛╩└║ IP ┴╓╝╥╖╬ ║╕│╗┴° ╕≡╡τ ┐Σ├╗└╗ ╝¡║±╜║╟╤┤┘.
┴╓╝¡╣÷┤┬ └²┤δ╖╬ ┐Σ├╗└╗ ╝¡║±╜║╟╧┴÷ ╕°╟╤┤┘.</p>
<h3><a name="defaultoneport" id="defaultoneport">╟╤ ╞≈╞«┐í ┤δ╟╤
<code>_default_</code> ░í╗≤╚ú╜║╞«</a></h3>
<p>80╣° ╞≈╞«┐í ┤δ╟╪╝¡╕╕ default ░í╗≤╚ú╜║╞«╕ª ╕╕╡Θ░φ ╜═┤┘.</p>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
<VirtualHost _default_:80><br />
DocumentRoot /www/default<br />
...<br />
</VirtualHost>
</code></p></div>
<p>╞≈╞« 80╣°┐í ┴÷┴ñ╟╧┴÷╛╩└║ ┴╓╝╥┐í ┤δ╟╤ ┐Σ├╗└║ ▒Γ║╗
░í╗≤╚ú╜║╞«░í ╝¡║±╜║╟╧░φ, ┤┘╕Ñ ┴÷┴ñ╟╧┴÷╛╩└║ ┴╓╝╥┐═ ╞≈╞«╕ª
░í┴° ┐Σ├╗└║ ┴╓ ╝¡╣÷░í ╝¡║±╜║╟╤┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="migrate" id="migrate">└╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª IP▒Γ╣▌
░í╗≤╚ú╜║╞«╖╬ ┐┼▒Γ▒Γ</a></h2>
<p>(<a href="#name">└╠╕º▒Γ╣▌</a>└╟ ├╣╣°┬░ ┐╣┐í╝¡) ╚ú╜║╞«╕φ
<code>www.example2.org</code>┐í ┤δ╟╤ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«┤┬
└┌╜┼└╟ IP ┴╓╝╥╕ª ░í┴«╛▀ ╟╤┤┘. └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«└╟ └╠└ⁿ
IP ┴╓╝╥╕ª ─│╜╠╟╧┤┬ │╫└╙╝¡╣÷│¬ ╟┴╖╧╜├┐═└╟ ╣«┴ª╕ª ╟╟╟╧▒Γ└º╟╪
┐┼▒Γ┤┬ ╡┐╛╚ ╡╤ ╕≡╡╬╕ª ╝¡║±╜║╟╧░φ ╜═┤┘.<br /> ╣µ╣²└║
<code>VirtualHost</code> ┴÷╜├╛ε┐í ╗⌡ IP ┴╓╝╥╕╕└╗
(<code>172.20.30.50</code>) ├▀░í╟╧╕Θ╡╟╣╟╖╬ ╜▒┤┘.</p>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
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 />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example2.org<br />
# ...<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="indent">
DocumentRoot /www/example3<br />
ServerName www.example3.net<br />
ServerAlias *.example3.net<br />
# ...<br />
</span>
</VirtualHost>
</code></p></div>
<p>└╠┴ª (IP▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ┼δ╟╤) ╗⌡╖╬┐ε ┴╓╝╥┐═ (└╠╕º▒Γ╣▌
░í╗≤╚ú╜║╞«╕ª ┼δ╟╤) └╠└ⁿ ┴╓╝╥ ╕≡╡╬ ░í╗≤╚ú╜║╞«┐í ┴ó▒┘╟╥
╝÷ └╓┤┘.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="serverpath" id="serverpath"><code>ServerPath</code>
┴÷╜├╛ε ╗τ┐δ╟╧▒Γ</a></h2>
<p>╡╬ └╠╕º▒Γ╣▌ ░í╗≤╚ú╜║╞«╕ª ░í┴° ╝¡╣÷░í └╓┤┘. ┐├╣┘╕Ñ
░í╗≤╚ú╜║╞«╕ª ╝▒┼├╟╧▒Γ└º╟╪ ┼¼╢≤└╠╛≡╞«┤┬ ┐├╣┘╕Ñ
<code>Host:</code> ╟∞┤⌡╕ª ║╕│╗╛▀ ╟╤┤┘. ┐└╖í╡╚ HTTP/1.0
┼¼╢≤└╠╛≡╞«░í └╠ ╟∞┤⌡╕ª ║╕│╗┴÷ ╕°╟╧╕Θ ╛╞╞──í┤┬ ┼¼╢≤└╠╛≡╞«░í
╛ε╢▓ ░í╗≤╚ú╜║╞«╕ª ║╕╖┴░φ╟╧┤┬┴÷ ╛╦ ╝÷ ╛°┤┘ (▒╫╖í╝¡ ├╓├╩└╟
░í╗≤╚ú╜║╞«░í ┐Σ├╗└╗ ╝¡║±╜║╟╤┤┘). ┐└╖í╡╚ ║Ω╢≤┐∞└·┐═ ░í┤╔╟╤ ╚ú╚»└╗
└»┴÷╟╧▒Γ└º╟╪ ├╓├╩└╟ ░í╗≤╚ú╜║╞«╕ª ╕╕╡Θ░φ, ┐⌐▒Γ┐í └╠╕º▒Γ╣▌
░í╗≤╚ú╜║╞«└╟ URL ┴ó╡╬╗τ╕ª ╞≈╟╘╟╧┤┬ ╕╡┼⌐ ╕±╖╧ ╞Σ└╠┴÷╕ª
╡╨┤┘.</p>
<div class="example"><h3>╝¡╣÷ ╝│┴ñ</h3><p><code>
NameVirtualHost 172.20.30.40<br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="indent">
# primary vhost<br />
DocumentRoot /www/subdomain<br />
RewriteEngine On<br />
RewriteRule ^/.* /www/subdomain/index.html<br />
# ...<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
DocumentRoot /www/subdomain/sub1<br />
<span class="indent">
ServerName www.sub1.domain.tld<br />
ServerPath /sub1/<br />
RewriteEngine On<br />
RewriteRule ^(/sub1/.*) /www/subdomain$1<br />
# ...<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="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 />
</span>
</VirtualHost>
</code></p></div>
<p><code class="directive"><a href="../mod/core.html#serverpath">ServerPath</a></code> ┴÷╜├╛ε╢º╣«┐í
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 />
<code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code>
┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ ┐├╣┘╕Ñ <code>Host:</code> ╟∞┤⌡╕ª ║╕│╗┤┬
┼¼╢≤└╠╛≡╞«┤┬ (<em>┐╣╕ª ╡Θ╛ε</em>, URL └ⁿ─í╗τ░í └╓░┼│¬ ╛°┤┬)
╡╬ URL└╗ ╕≡╡╬ ╗τ┐δ╟╥ ╝÷ └╓┤┘.</p>
</div></div>
<div class="bottomlang">
<p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/vhosts/examples.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ko/vhosts/examples.html" title="Korean"> ko </a></p>
</div><div id="footer">
<p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
<p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p></div>
</body></html>