1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657
|
<?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>
<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" />
<!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>ȣƮ - Apache HTTP Server Version 2.4</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 rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
<script src="../style/scripts/prettify.min.js" type="text/javascript">
</script>
<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="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html"></a> | <a href="../sitemap.html">Ʈ</a></p>
<p class="apache">Apache HTTP Server Version 2.4</p>
<img alt="" src="../images/feather.png" /></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/">Documentation</a> > <a href="../">Version 2.4</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="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/vhosts/examples.html" title="Korean"> ko </a> |
<a href="../tr/vhosts/examples.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</div>
<div class="outofdate"> ֽ ƴմϴ.
ֱٿ ϼ.</div>
<p> ǵǴ ȣƮ
Ϸ . Ȳ <a href="name-based.html"≯</a>̳ <a href="ip-based.html">IP</a> ȣƮ
Ʈ Ϸ ̴. Ͻ ڿ
Ͽ Ʈ ϴ 츦 ٷ
̴.</p>
</div>
<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><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><h3></h3><ul class="seealso"><li><a href="#comments_section">Comments</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.example.com</code>
<code>www.example.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 *:80<br />
<br />
<VirtualHost *:80><br />
<span class="indent">
DocumentRoot /www/example1<br />
ServerName www.example.com<br />
<br />
# ٸ þ鵵 ִ<br />
<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost *:80><br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example.org<br />
<br />
# ٸ þ鵵 ִ<br />
<br />
</span>
</VirtualHost>
</code></p></div>
<p>ǥ ּҸ ŰǷ, ּ û
ʴ´. <code>www.example.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.example.com<br />
<br />
# ٸ þ鵵 ִ ...<br />
<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50><br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example.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.example.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.example.com<br />
DocumentRoot /www/domain-80<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<span class="indent">
ServerName www.example.com<br />
DocumentRoot /www/domain-8080<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:80><br />
<span class="indent">
ServerName www.example.org<br />
DocumentRoot /www/otherdomain-80<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<span class="indent">
ServerName www.example.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.example.com</code>
<code>www.example.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.example.com<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50><br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example.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.example.com</code>
<code>www.example.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.example.com<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40:8080><br />
<span class="indent">
DocumentRoot /www/example1-8080<br />
ServerName www.example.com<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50:80><br />
<span class="indent">
DocumentRoot /www/example2-80<br />
ServerName www.example.org<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.50:8080><br />
<span class="indent">
DocumentRoot /www/example2-8080<br />
ServerName www.example.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.example.com<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="indent">
DocumentRoot /www/example2<br />
ServerName www.example.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.example.org</code> ̸ ȣƮ
ڽ IP ּҸ Ѵ. ̸ ȣƮ
IP ּҸ ijϴ Ӽ Ͻÿ ϱ
ű θ ϰ ʹ.</p>
<p>
<code>VirtualHost</code> þ IP ּҸ
(<code>172.20.30.50</code>) ߰ϸǹǷ .</p>
<div class="example"><h3> </h3><p><code>
Listen 80<br />
ServerName www.example.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.example.org<br />
# ...<br />
</span>
</VirtualHost><br />
<br />
<VirtualHost 172.20.30.40><br />
<span class="indent">
DocumentRoot /www/example3<br />
ServerName www.example.net<br />
ServerAlias *.example.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>
Ŭ̾Ʈ ȣƮ ִ
Եȴ.</p>
<p> ϶: Ŭ̾Ʈ
<code>Host:</code>
<code>http://www.sub2.domain.tld/sub1/</code> û
subl-ȣƮ Ѵ.</p>
<p><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="../fr/vhosts/examples.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="../ja/vhosts/examples.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/vhosts/examples.html" title="Korean"> ko </a> |
<a href="../tr/vhosts/examples.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</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 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/2.4/vhosts/examples.html';
(function(w, d) {
if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
d.write('<div id="comments_thread"><\/div>');
var s = d.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
(d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
}
else {
d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
}
})(window, document);
//--><!]]></script></div><div id="footer">
<p class="apache">Copyright 2025 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>
<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[//><!--
if (typeof(prettyPrint) !== 'undefined') {
prettyPrint();
}
//--><!]]></script>
</body></html>
|