Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ
îðèãèíàëüíîãî äîêóìåíòà
: http://www.arcetri.astro.it/manual/ko/vhosts/details.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013 Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 06:15:48 2014 Êîäèðîâêà: ISO8859-5 Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï |
Apache HTTP Server Version 2.2
ÀÅË?Ø?ÍÊÖ? ÔêÅõÄÒ ÎÖÖÔÔÅ 1.3ÏÅÌ- ÀÕÐ× ÄéÍÓ
ÐëÌÊÅ×Î?Äé. ÐÜ É?Ì-ÄÒ ÎÖÖÔÔÅÀÅ ÏôÓËÐË ÉîÐÈÈù ÎþÆ ÀÅË?Ø?ÍÊÖ?ÀÅ
Ì-ÊåÍÊ×âÑ? ÀñÑ?×ßÄÒ ÉöÉÐË ÌÃÈý×áÄé. Ë?ÇÞÏþ NameVirtualHost
Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÏ?
ÀÅË?Ø?ÍÊÖ? ÌÃÑ?ÐÜ 1.3 É?Ð? ÐÜÐ?ÊÈÄé Ä? ÍÁÀý ÎØÐ?×èÑÃÄé.
ÎþÆËÀä ÅÏÐë×ßÄÒÑ? ÐÜ×è×ßÑ?ÎÚÀý ÄìÑ? ÅÏÐë×ßÀäÈÈ ×ßÀý ÍÝÄéÈù, ÏÉÑ?ÅùÐË Ò?Àý×ßÆ?.
<VirtualHost>
ÌÃÑ?ÐË Ñ?Ïì×á ÌÃÑ?ÐÜ
ÑæÌ-É?È? ÈÈÅ÷Äé. <VirtualHost>
ÌÍÌ×ÐÈÇÞ Ñ?Ð××á
ÊÞÊàÐË ÀÅË?Ø?ÍÊÖ?Æ?Àý ÊÞÈ?Äé.
Listen
,
ServerName
,
ServerPath
,
ServerAlias
Ñ?ÍÓÎþÄÒ
Ì-É? Ñ?Ð× ÎþÄÐÀ?ÏÅÌ-ÅÅ Ë÷Ïû×â Ì? ÐæÄé. ÁçÇ?Ã? ÀÀÐÊ Ñ?ÍÓÎþÀÅ
Ï?Ç?É? Ã?ÏÐÈù (Áç Ì-É?ÏÅÌ-) ÈÆÑ?ÈÇ Ñ?ÍÓÎþÈÈÐÜ Ð?ØÏ×ßÄé.
ÑæÌ-É? Listen
Ð× ÁòÊËÀ?ÐÊ 80ÐÜÄé. ÑæÌ-É?Ð×
ServerPath
Ã? ServerAlias
ÏÅÄÒ
ÁòÊËÀ?ÐÊ Î?Äé. ServerName
Ð× ÁòÊËÀ?ÐÊ Ì-É?Ð×
IP ÑæÌâÐÜÄé.
ÑæÌ-É?Ð× Listen Ñ?ÍÓÎþÄÒ ÅÞÀÅÑ? ÁòÄÙÐË ×áÄé. ÓÉÒÀÄÒ ÎÖÖÔÔÅÀÅ Ï?Àñ×â ÁòÊË ÃçÖ?Ï? Ö?Ö?È? Ñ?Ñ?×ßÄÒ ÐßÐÜÄé. ÅáÒÀÄÒ È?ÄéÐÜÇÊÌ××â ÐÄû URIÏÅ Ë÷Ïû×â Ö?Ö? É?Ø?È? Ñ?Ñ?×ßÄÒ ÐßÐÜÄé.
ÑæÌ-É?ÏÝ ÄîÈ? ÀÅË?Ø?ÍÊÖ?Ð× Ö?Ö?ÄÒ ÎÖÖÔÔÅÀÅ Ï?ÀñÐË ÁòÄéÈ?ÄÒ Ö?Ö?ÏÅ ÏÅ×òÐË ÑæÑ? ÎÚÄÒÄé.
VirtualHost
Ñ?ÍÓÎþÏÅ Ö?Ö?È? Ñ?Ñ?×â Ì? ÐæÄé.
Ö?Ö?È? Ñ?Ñ?×ßÑ?ÎÚÐÈÈù ÑæÌ-É?Ð× ÀÅÐõ ÓæÁé Listen
À?ÐË Ë÷Ïû×áÄé. Ö?ÊÀ×á Ö?Ö? *
ÄÒ ÎþÆÂ Ö?Ö?Æ?ÅÅ
Ñ?Ô?×ßÄÒ ÏÝÐßÅõÔ?ÅõÐÜÄé. (DNS ÀÛË? ÀñÀ?Ð× Ï?Ç? A
ÇÉÔêÅõÈ? Ö?×ä×ßÏ?) ÀÅË?Ø?ÍÊÖ?Ð× ÑæÌâÈ? È?ÅÞ ÓáÔ?×ßÏ? ÀÅË?Ø?ÍÊÖ?Ð×
ÑæÌâÑ×å(address set)ÐÜÆ?Àý ÊÞÈ?Äé.
Ö?Ñ? IP ÑæÌâÏÅ Äû×á NameVirtualHost
Ñ?ÍÓÎþÀÅ Î?ÄéÈù
Áç ÑæÌâÈ? Ö?×ä×ßÄÒ ÓÉÉ?ÒÀ ÀÅË?Ø?ÍÊÖ?È? IPÁòÉí ÀÅË?Ø?ÍÊÖ?ÇÞ ÓûÁî×áÄé.
IP ÑæÌâÏÅ ÏÝÐßÅõÔ?Åõ *
È? Ë÷Ïû×â Ì?ÅÅ ÐæÄé.
ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?È? Ë÷Ïû×áÄéÈù ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?ÏÅ
Ë÷Ïû×â IP ÑæÌâÈ? NameVirtualHost
Ñ?ÍÓÎþÏÅ
Ë÷Ïû×èÎï ×áÄé. Ñÿ, ÌÃÑ?ÖÔÐßÐ× NameVirtualHost
Ñ?ÍÓÎþÏÅ ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?Ð× Ø?ÍÊÖ?ÊÀÈý(CNAME)ÏÅ ×èÄ÷×ßÄÒ
IP ÑæÌâÈ? Ñ?Ñ?×èÎï ×áÄé.
Ö?Ñ? IP:Ö?Ö? ÍæÏÅ Äû×è ÏÐÑ? ×á NameVirtualHost
Ñ?ÍÓÎþÈÈÐË Ë÷Ïû×áÄéÈù, Ï?Ç? NameVirtualHost
Ñ?ÍÓÎþÏÝ
VirtualHost
Ñ?ÍÓÎþÈ? Ì?ÎþÌ- Ë÷Ïû×â Ì? ÐæÄé.
NameVirtualHost
ÏÝ VirtualHost
Ñ?ÍÓÎþÐ× Ì?Ì-ÄÒ ÑïÏô×ßÑ? ÎÚÁòÆ?É?ÏÅ ÄéÐÍ ÅÞ ÏÉÄÒ ÀÀÄé (ÏÐÑ?
×á ÑæÌâÑ×åÏÅ Äû×á VirtualHost
Ð×
Ì?Ì-ÀÅ ÑïÏô×ßÄé. ÎÖÇÅ Ò?Àý):
|
|
(ÏîÒÚ ÌÃÑ?ÐÜ Ä? ÐàÁò Öý×ßÄé.)
VirtualHost
Ñ?ÍÓÎþÈ? ÐàÐË ÄéÐÍ, ÀÅË?Ø?ÍÊÖ?
Ì-É?ÄÒ VirtualHost
Ñ?ÍÓÎþÏÅ Ñ?Ñ?×á Ö?Ö?È? ÁòÊË
Listen
ÐÈÇÞ ×áÄé.
VirtualHost
Ñ?ÍÓÎþÐ× ÐÜÈ?ÐÜ È?ÅÞ ÀÀÐÊ
ÑæÌâÑ×åÏÅ Ìã×áÄéÈù ServerAlias
ÏÝ ÀÀÐÜ ÓûÁî×áÄé
(ÁçÇ?Ã? ÄéÈ? ServerAlias
Ð× ÏÅ×òÐË ÉîÑ? ÎÚÄÒÄé).
ÀÅË?Ø?ÍÊÖ?ÏÅ ÓïÀÅÇÞ Ë÷Ïû×á Listen
ÐÊ ÑæÌâÑ×åÐÜ
Ñ?Ñ?×á Ö?Ö?ÏÅ ÏÅ×òÐË ÑæÑ? ÎÚÐÍÐË ÑæÐ××ßÆ?.
ÍÓÐë×âÆ? IP ÑæÌâ ÈåÇßÐË ÈÈÅùÎþ ×èÍ?ÕçÐÜÊýÏÅ ÓïÀÅ×áÄé.
NameVirtualHost
Ñ?ÍÓÎþÏÅ IP ÑæÌâÈ? Ë÷Ïû×ßÈù
ÈåÇßÐÊ Áç IP ÑæÌâÏÅ Äû×á È?Å÷ ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?È? Ö?×ä×áÄé.
Áç ÑæÌâÏÅ Äû×á ÀÅË?Ø?ÍÊÖ?ÀÅ Î?ÄéÈù NameVirtualHost
Ñ?ÍÓÎþÈ? É?ÍÓ×ßÀý ÇÞÁçÏÅ ÏÐÇ?È? ÁòÇß×áÄé. IPÁòÉí ÀÅË?Ø?ÍÊÖ?ÄÒ
×èÍ?ÕçÐÜÊýÏÅ ÈåÇßÐË ÓïÀÅ×ßÑ? ÎÚÄÒÄé.
Ê?È? ×èÍ?×äÌ?È? Ë÷Ïû×ßÁòÆ?É?ÏÅ ÏôÓËÍÓ IP ÑæÌâÈ? ×èÍÜ×ßÄÒ ÊÞÄóÐÊ ÀÕÐ× Î?Äé. Æ× ×èÍ?ÕçÐÜÊýÐÊ IP ÑæÌâÐ× ÈÆÑ?ÈÇ ÊÞÊàÐ× Ò?ÐÜÏÅ ÓæÐ?Ø-Å×ÐæÄé.
ÀÅË?Ø?ÍÊÖ?ÏÅ Ï?Ç? ÁòÊËÀ?ÐÜ ÌÃÑ?ÅØÄé. Ö?Ø?:
ServerAdmin
,
ResourceConfig
,
AccessConfig
,
Timeout
,
KeepAliveTimeout
,
KeepAlive
,
MaxKeepAliveRequests
,
SendBufferSize
Ñ?ÍÓÎþÀÅ Î?ÄéÈù ÑæÌ-É?ÏÅÌ- ×èÄ÷ À?ÐË ÀÅÑ?ÏÒÄé. (Ñÿ,
ÑæÌ-É?Ð× ÌÃÑ?À?ÐË Ë÷Ïû×áÄé.)ÁòÊËÐ?ÐÈÇÞ ÑæÌ-É?ÄÒ ÀÅË?Ø?ÍÊÖ?È? ÈÈÅõÄÒ "ÁòÊË" Ø?ÐÊ "ÁòÉí"ÐÜ ÅØÄé. ÁçÇ?Ã? ÌÃÑ?ÖÔÐßÏÅÌ- ÑæÌ-É?È? Ñ?Ð××ßÄÒ Ð?ÔÅÄÒ À?ÀøÎ?Äé. ÈÆÑ?ÈÇÐÈÇÞ ÌÃÑ?ÐË ×åÔÅÁò Ð?ÏÅ ÑæÌ-É?Ð× È?Å÷ ÌÃÑ?ÐË ÐàÎþÅùÐÞÄé. ÁçÇÅÌ- ÑæÌ-É? Ñ?Ð×ÀÅ ÀÅË?Ø?ÍÊÖ? Ñ?Ð× ÅêÏÅ Ã?ÏÝÅÅ ÀÅË?Ø?ÍÊÖ? Ñ?Ð×ÏÅ ÏÅ×òÐË ÑèÄé.
ÑæÌ-É?ÏÅ ServerName
ÐÜ Î?ÄéÈù Ð?Ì-É?È? Í××ð×ßÄÒ
ÔÔ×ËÕÝÐ× Ø?ÍÊÖ?ÈýÐË ÄûÍÕ Ë÷Ïû×áÄé. ÑæÌ-É?Ð×
ServerName
ÐË DNS ÀÜË?×ßÏ? Î?ÐÊ IP ÑæÌâÅùÐË
ÑæÌ-É? ÑæÌâÑ×åÐÜÆ?Àý ÊÞÈ?Äé.
ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?Ð× ServerName
ÐË Ñ?Ð××ßÑ?
ÎÚÐÈÈù ÀÅË?Ø?ÍÊÖ?È? Ñ?Ð××ßÄÒ VirtualHost
ÏÅÌ-
ÓÃÐÍÐÈÇÞ Ã?ÏÒ ÑæÌâÈ? ÁòÊËÀ?ÐÈÇÞ Ë÷Ïû×áÄé.
Ö?ÊÀ×á _default_
ÏÝÐßÖ?Ô?ÅõÈ? Ö?×ä×ßÄÒ
ÀÅË?Ø?ÍÊÖ?ÄÒ ÑæÌ-É?ÏÝ ÀÀÐÊ ServerName
ÐË ÀÅÑ?Äé.
Ì-É?ÄÒ ÎÖÇÅÏÝ ÀÀÐÊ ÉöÉÐÈÇÞ ÎþÆ ÀÅË?Ø?ÍÊÖ?ÀÅ ÏôÓËÐË ÓÃÈ?×âÑ? ÀñÑ?×áÄé:
Õ?Æ?ÐÜÎ?Ö?ÀÅ ÓÃÐÍ Ï?Àñ×ßÈù Ï?Àñ×á IP ÑæÌâÈ? ÃËÊÞ IP ×èÍ?ÕçÐÜÊýÏÅÌ- Ó?ÄÒÄé.
IP ÑæÌâÈ? Ó?ÐË Ì? Î?Àý Õ?Æ?ÐÜÎ?Ö?ÀÅ ÏôÓËÐË ÊÈÃÍ Ö?Ö?ÏÅ
×èÄ÷×ßÄÒ ÀÅË?Ø?ÍÊÖ?ÀÅ ÐæÄéÈù, _default_
ÀÅË?Ø?ÍÊÖ?ÀÅ
ÏôÓËÐË Ì-ÊåÍÊ×áÄé. _default_
ÀÅË?Ø?ÍÊÖ?ÀÅ
Î?ÄéÈù ÑæÌ-É?ÀÅ ÏôÓËÐË Ì-ÊåÍÊ×áÄé.
×èÍ?ÕçÐÜÊýÏÅ IP ÑæÌâÀÅ Î?Ñ?ÈÈ Ö?Ö? É?Ø?ÀÅ
NameVirtualHost *
ÏÅ ×èÄ÷×â Ì? ÐæÄé. ÐÜ ÀöÏü
ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?ÓÃÇà ÓÃÈ?×áÄé.
Ó?ÎâÄéÈù (ÈåÇßÏÅÌ- IP ÑæÌâÏÅ ×èÄ÷×ßÄÒ ×çÈåÐË Ó?ÐÈÈù), IPÁòÉí ÀÅË?Ø?ÍÊÖ?ÐÞÑ? ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?ÐÞÑ? ÀñÑ?×áÄé.
Ó?ÐÊ ×çÈåÏÅ ÐÜÈ? ÈåÇßÐÜ Î?ÄéÈù IPÁòÉí ÀÅË?Ø?ÍÊÖ?ÐÜÄé. Ä? ÐÜË? ÐëÎ?ÐÜ ×ÚÏôÎ?Àý, Áç ÀÅË?Ø?ÍÊÖ?ÀÅ ÏôÓËÐË ÓÃÈ?×áÄé.
ÐÜÈ? ÈåÇßÏÅ ×áÀà ÐÜË?Ð× ÀÅË?Ø?ÍÊÖ? ÁÈÑÆÀÅ Ö?×äÅ×Èù
ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?ÐÜÄé. ÐÜ ÈåÇßÏÅÌ- ÀÅË?Ø?ÍÊÖ?ÅùÐÊ ÌÃÑ?ÖÔÐßÐ×
VirtualHost
Ì?Ì-ÄûÇÞ Ð?ÔÅ×áÄé.
ÈåÇßÏÅÌ- ÓÉÉ?ÒÀ ÀÅË?Ø?ÍÊÖ?(ÌÃÑ?ÖÔÐßÏÅÌ- ×èÄ÷ IP ÑæÌâÈ?
Ö?×ä×ßÄÒ ÓÉÉ?ÒÀ ÀÅË?Ø?ÍÊÖ?)ÄÒ ÀÅÐõ Ã?ÐÊ ÏüÌÁÌ?Ð?È? ÀÅÑ?È÷,
Ì-É?ÈýÐË ÎÛ Ì? Î?ÀÕÃ? Host:
×üÄ?ÀÅ Î?ÄÒ ÏôÓËÐË
ÓÃÈ?×áÄé.
Õ?Æ?ÐÜÎ?Ö?ÀÅ Host:
×üÄ?È? ÑæÈù, ÈåÇßÏÅÌ-
ÓÉÉ?ÒÀÇÞ ServerName
ÐÜÃ?
ServerAlias
ÀÅ ÄûÐÐ×ßÄÒ ÀÅË?Ø?ÍÊÖ?ÀÅ ÏôÓËÐË
Ì-ÊåÍÊ×áÄé. Host:
×üÄ?ÏÅ Ö?Ö? É?Ø?ÀÅ Ã?ÏÓ Ì?
ÐæÑ?ÈÈ, ÎÖÖÔÔÅÄÒ ×çË? Õ?Æ?ÐÜÎ?Ö?ÀÅ ÏôÓËÐË ÊÈÃÍ Í×Ñ? Ö?Ö?È?
Ó?ÄÒÄé.
Õ?Æ?ÐÜÎ?Ö?ÀÅ Host:
×üÄ?Î?ÐÜ HTTP/1.0 ÏôÓËÐË
×ßÈù Õ?Æ?ÐÜÎ?Ö?ÀÅ ÎþÆ Ì-É?ÏÅ Ï?Àñ×ßÇÑÄÒÑ? ÎÛ Ì? Î?ÁòÆ?É?ÏÅ
ÏôÓËÐ× URIÏÅ ×èÄ÷×ßÄÒ ServerPath
ÀÅ ÐæÄÒÑ? Ó?ÄÒÄé.
ÈåÇßÏÅÌ- Ñ?Ðß ÈåÐ? Ó?ÐÊ ÀöÇÞÈ? Ë÷Ïû×ßÀý, Áç ÀÅË?Ø?ÍÊÖ?ÀÅ
ÏôÓËÐË Ì-ÊåÍÊ×áÄé.
ÄûÐÐ×ßÄÒ ÀÅË?Ø?ÍÊÖ?È? Ó?ÐË Ì? Î?ÄéÈù, (ÐÜÉÜ ÎåÏÅ ÈË×ïÅýÐÜ) Õ?Æ?ÐÜÎ?Ö?ÀÅ Ï?Àñ×á IPÏÅ Äû×á ÈåÇßÏÅÌ- ÐßÔÅ×ßÄÒ Ö?Ö? É?Ø?È? Ö?×ä×ßÄÒ ÓÉÉ?ÒÀ ÀÅË?Ø?ÍÊÖ?ÀÅ ÏôÓËÐË Ì-ÊåÍÊ×áÄé.
IPÄÒ Ð?ÏÅÌ- ÌÃÈý×áÅ?ÇÞ Ö?Ñ? TCP/IP ÌÌÌ×Ä÷ ×áÉ?ÈÈ Ó?Ñ?ÈÈ, ÐÜÈ?ÐÊ KeepAlive/Ñ?Ìã Ï?ÀñÅÏÎØ ÈÕ ÏôÓËÆ?ÈÆÄé Ó?ÄÒÄé. Ñÿ, Õ?Æ?ÐÜÎ?Ö?ÄÒ Ñ?Ìã Ï?ÀñÅÏÎØ Ï?Ç? ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?Ð× ÖôÐÜÑ?È? ÏôÓË×â Ì? ÐæÄé.
ÏôÓËÐ× URIÀÅ ÐÄû URIÐÜÀý Õ?Æ?ÐÜÎ?Ö?ÀÅ ÊÈÃÍ ÏôÓËÐ× Ø?ÍÊÖ?ÈýÀ? Ö?Ö?ÀÅ ÑæÌ-É?Ã? Ö?Ñ? ÀÅË?Ø?ÍÊÖ?ÏÅ ×èÄ÷×ßÈù, Áç ÑæÌ-É? Ø?ÐÊ ÀÅË?Ø?ÍÊÖ?ÄÒ URI ÎåÐ× ÍÊÕÄ/Ø?ÍÊÖ?Èý/Ö?Ö? ÊÞÊàÐË Ñ?Ïì×á Ã?ÈãÑ? Ë?Äû URIÈ? Ì-ÊåÍÊ×áÄé. ×èÄ÷×ßÄÒ ÑæÌ-É?Ã? ÀÅË?Ø?ÍÊÖ?ÀÅ Î?ÄéÈù URIÈ? ÁçÄûÇÞ ÅÞÀý ÏôÓËÐË ×ÑÇßÍÓ ÏôÓËÐÈÇÞ ÓÃÈ?×áÄé.
NameVirtualHost
Ñ?ÍÓÎþÇÞ Ñ?Ð××á ÑæÌâÑ×åÐ×
IP ÑæÌâÈ? Õû×èÌ-ÈÈ Ñ?Áé×â Ì? ÐæÄé.ServerAlias
ÏÝ
ServerPath
È? ÐÄûÇÞ ÀÛË÷×ßÑ? ÎÚÄÒÄé._default_
ÀÅË?Ø?ÍÊÖ?, NameVirtualHost
Ñ?ÍÓÎþÐ× Ì?Ì-ÄÒ ÑïÏô×ßÑ? ÎÚÄé. Ö?Ñ? ÑæÌâÑ×åÏÅ Äû×á
ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?ÅùÐ× Ì?Ì-ÈÈÐÜ ÑïÏô×ßÄé. ÌÃÑ?ÖÔÐßÏÅÌ-
ÎåÏÅ Ã?ÏÐÄÒ ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ?ÄÒ ÐêÍÕÐÜ Ìã×á ÑæÌâÑ×åÏÅÌ-
ÀÅÐõ Ã?ÐÊ ÏüÌÁÌ?Ð?È? ÀÅÑ?Äé.Host:
×üÄ?ÏÅ Ö?×äÅØ Ö?Ö?
É?Ø?ÄÒ ÐÄûÇÞ Ë÷Ïû×ßÑ? ÎÚÄÒÄé. ÎÖÖÔÔÅÄÒ ×çË? Õ?Æ?ÐÜÎ?Ö?ÀÅ
ÏôÓËÐË ÊÈÃÍ Í×Ñ? Ö?Ö?È? Ë÷Ïû×áÄé.Host:
×üÄ?ÀÅ Î?ÄéÀý
ÀÅÑ?×ßÈù,) ServerPath
Ñ?ÍÓÎþÀÅ ÌÃÑ?ÖÔÐßÏÅÌ-
ÅêÏÅ Ã?ÏÐÄÒ ÄéÈ? ServerPath
Ñ?ÍÓÎþÐ× ÎåÊÞÊàÐË
Ñ?Ô?×ßÄÒ ÀöÏü ×çË? ÎåÏÅ Ã?ÏÒ Ñ?ÍÓÎþÈ? Ë÷Ïû×áÄé._default_
ÀÅË?Ø?ÍÊÖ?ÄÒ ÏôÓËÐ× IP ÑæÌâÏÝ
Ö?Ö? É?Ø?ÏÅ ×èÄ÷×ßÄÒ ÀÅË?Ø?ÍÊÖ?ÀÅ Î?ÐËÆ?ÈÈ ÏôÓËÐË ÓÃÈ?×áÄé.
Õ?Æ?ÐÜÎ?Ö?ÀÅ ÏôÓËÐË ÊÈÃÍ Ö?Ö? É?Ø?ÀÅ _default_
ÀÅË?Ø?ÍÊÖ?Ð× Ö?Ö? É?Ø?(ÁòÊËÀ?ÐÊ Listen
)ÏÝ
ÀÀÐËÆ?ÈÈ ÏôÓËÐË ÓÃÈ?×áÄé. ÎþÆ Ö?Ö?Ð× ÏôÓËÐÜÆ?ÅÅ ÐòÁòÐ?×è
(ÏÉÈ? ÅùÎþ, _default_:*
) ÏÝÐßÅõÔ?Åõ
Ö?Ö?È? Ë÷Ïû×â Ì? ÐæÄé. NameVirtualHost *
ÀÅË?Ø?ÍÊÖ?ÅÅ ÈÆÒ?ÀÅÑ?Äé._default_
ÀÅË?Ø?ÍÊÖ?È? Ö?×ä×ßÏ?)
ÀÅË?Ø?ÍÊÖ?ÀÅ Î?ÐËÆ?ÈÈ ÏôÓËÐË Ì-ÊåÍÊ×áÄé. Ñÿ, ÑæÌ-É?ÄÒ
(Áç Ö?Ö?ÏÅ ×èÄ÷×ßÄÒ _default_
ÀÅË?Ø?ÍÊÖ?ÀÅ
Î?ÄéÈù) Ñ?Ñ?×ßÑ?ÎÚÐÊ ÑæÌâ/Ö?Ö? ÍæÏÅ Äû×á ÏôÓËÈÈÐË ÓÃÈ?×áÄé.NameVirtualHost
Ñ?ÍÓÎþÏÅÌ-) ÐÜÈ?ÁòÉí ÀÅË?Ø?ÍÊÖ? ÑæÌâ(ÏÝ Ö?Ö?)ÏÅ Ï?Àñ×á
ÀöÏü Host:
×üÄ?È? ÎÛ Ì? Î?ÀÕÃ? ×üÄ?ÀÅ Î?ÄÒ
ÏôÓËÐË ÊÈÃËÈù ÏôÓËÐÊ ÐÄûÇÞ _default_
ÀÅË?Ø?ÍÊÖ?Ã? ÑæÌ-É?ÏÅÌ- ÓÃÈ?×ßÑ? ÎÚÄÒÄé.VirtualHost
Ñ?ÍÓÎþÏÅ DNS ÐÜÈ?ÐË Ë÷Ïû×ßÑ?ÈÆÆ?.
ÀäÄéÀÅ Ï-ÀÕ×á È?Å÷ ÅÅÈîÐÞÐ× DNSÈ? ÕûÑ?×ßÑ? ÎÚÄÒÄéÈù
ÊÈÎØË? Ð?×øÅÅ ÐæÄé. ÐÜÏÅ Äû×á Ñ?ÊÈÀÅ ÐæÄé.ServerName
È? ×çË?
Ñ?Ð××èÎï ×áÄé. ÎØÁçÇ?Èù ÀÅË?Ø?ÍÊÖ?ÈÆÄé DNSÈ? Ó?Àä ÅØÄé.DNS É?Ñ? ÖôÐÜÑ?Ð× ÖÑÏÅ ÓïÀÅÇÞ ÎÖÇÅÏÅ ÖÑÐÜ ÐæÄé:
VirtualHost
Ñ?Ð× ÎåÏÅ
ÅÞÎþÆ?. (ÁçÇ?Èù ÌÃÑ?ÐË ÐàÁò Öý×ßÄé. ÎØÁçÇ?Èù Ã?ÑïÏÅ ÌÃÑ?ÐÜ
×åÓÔÑ?Æ? ÀÅË?Ø?ÍÊÖ?Åù Ë÷ÐÜÏÅ Ì?ÐÞ Ñ?Ð×ÀÅ È?Å÷ ÀÅË?Ø?ÍÊÖ?ÏÅ
ÏÅ×òÐË Ñé Ì? ÐæÁòÆ?É?ÏÅ Ø?Æ?ÍÊÇÄÄé.)NameVirtualHost
À?
VirtualHost
Ñ?Ð×ÅùÐË É-ÎþÆ?.ServerPath
ÀÅ ÄéÈ? ServerPath
Ð×
ÎåÊÞÊàÐË Ñ?Ô?×ßÄÒ ÀöÏüÈ? ×××ßÆ?. ×××â Ì? Î?ÄéÈù ÌÃÑ?ÖÔÐßÏÅÌ-
ÎåÊÞÊàÐÜ Ä? Áô (Ä? ÐêÌÌ×á) ÀÅË?Ø?ÍÊÖ?È? Ò?ÐÊ (Ä? ÐêÌÌ×á)
ÀÅË?Ø?ÍÊÖ?ÊÈÄé ÎåÏÅ ÅÞÎþÆ?. (ÏÉÈ? ÅùÎþ,
"ServerPath /abc"ÄÒ "ServerPath /abc/def" ÄéÐÍÏÅ ÅÞÎþÎï
×áÄé.