📄 mass.xml.ko
字号:
<?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: 151405 --><!-- Copyright 2003-2004 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.--><manualpage metafile="mass.xml.meta"><parentdocument href="./">啊惑龋胶飘</parentdocument> <title>措樊狼 啊惑龋胶飘甫 悼利栏肺 汲沥窍扁</title><summary> <p>捞 巩辑绰 酒颇摹 1.3俊辑 措樊狼 啊惑龋胶飘甫 瓤啦利栏肺 辑厚胶窍绰 规过阑 汲疙茄促. <!-- Written by Tony Finch (fanf@demon.net) (dot@dotat.at). Some examples were derived from Ralf S. Engleschall's document http://www.engelschall.com/pw/apache/rewriteguide/ Some suggestions were made by Brian Behlendorf. --> </p></summary><section id="motivation"><title>悼扁</title> <p>寸脚狼 <code>httpd.conf</code>俊 促澜苞 鞍捞 辑肺 厚搅茄 <code><VirtualHost></code> 冀记甸阑 腹捞 乐促搁 咯扁辑 汲疙窍绰 规过捞 档框捞 瞪 巴捞促:</p><example>NameVirtualHost 111.22.33.44<br /><VirtualHost 111.22.33.44><br /><indent> ServerName www.customer-1.com<br /> DocumentRoot /www/hosts/www.customer-1.com/docs<br /> ScriptAlias /cgi-bin/ /www/hosts/www.customer-1.com/cgi-bin<br /></indent></VirtualHost><br /><VirtualHost 111.22.33.44><br /><indent> ServerName www.customer-2.com<br /> DocumentRoot /www/hosts/www.customer-2.com/docs<br /> ScriptAlias /cgi-bin/ /www/hosts/www.customer-2.com/cgi-bin<br /></indent></VirtualHost><br /># 官焊 官焊 官焊<br /><VirtualHost 111.22.33.44><br /><indent> ServerName www.customer-N.com<br /> DocumentRoot /www/hosts/www.customer-N.com/docs<br /> ScriptAlias /cgi-bin/ /www/hosts/www.customer-N.com/cgi-bin<br /></indent></VirtualHost></example> <p>扁夯 俺充篮 沥利牢 <code><VirtualHost></code> 汲沥 葛滴甫 悼利栏肺 贸府窍档废 措眉窍绰 巴捞促. 弊矾搁 腹篮 厘痢捞 乐促:</p> <ol> <li>汲沥颇老捞 累酒廉辑 酒颇摹啊 弧府 矫累窍绊 皋葛府甫 利霸 荤侩茄促.</li> <li>啊惑龋胶飘甫 眠啊窍扁困秦 颇老矫胶袍俊 利寸茄 叼泛配府甫 父甸绊 DNS俊 亲格阑 眠啊窍扁父 窍搁等促. 溜, 酒颇摹甫 犁汲沥窍绊 犁矫累且 鞘夸啊 绝促.</li> </ol> <p>窜痢篮 阿 啊惑龋胶飘喊肺 促弗 肺弊颇老阑 荤侩且 荐 绝促绰 痢捞促. 弊矾唱 概快 腹篮 啊惑龋胶飘甫 荤侩茄促搁 颇老扁贱磊甫 促 结滚府扁锭巩俊 辑肺 促弗 肺弊颇老阑 荤侩且 荐 绝促. 颇捞橇唱 fifo肺 肺弊甫 焊郴绊, 罐绰 祈俊辑 肺弊甫 贸府窍咯 唱穿绰 规过捞 (烹拌 殿阑 葛阑 荐档 乐促) 歹 炒促.</p></section><section id="overview"><title>俺夸</title> <p>啊惑龋胶飘绰 IP 林家客 HTTP 夸没狼 <code>Host:</code> 庆歹 沥焊肺 沥狼茄促. 扁夯利栏肺 措樊狼 悼利 啊惑龋胶飘 扁贱篮 磊悼栏肺 啊惑龋胶飘 沥焊甫 夸没狼 颇老版肺俊 器窃茄促. 捞绰 措何盒 <module>mod_vhost_alias</module>甫 荤侩窍咯 奖霸 秦搬且 荐 乐瘤父, 酒颇摹 1.3.6 捞窍甫 荤侩茄促搁 <module>mod_rewrite</module>甫 荤侩秦具 茄促. 捞 滴 葛碘 葛滴 扁夯利栏肺 辑滚俊 器窃登瘤 臼绰促. 捞 规过阑 荤侩窍妨搁 酒颇摹甫 备己窍绊 哪颇老且锭 器窃秦具 茄促.</p> <p>悼利 啊惑龋胶飘甫 老馆利牢 啊惑龋胶飘贸烦 焊捞霸窍妨搁 咯矾啊瘤甫 `加咯具' 茄促. 啊厘 吝夸茄 巴篮 酒颇摹啊 磊扁曼炼 URL 殿阑 父甸锭 荤侩且 辑滚疙捞促. 辑滚疙篮 <code>ServerName</code> 瘤矫绢肺 汲沥窍哥, CGI俊绰 <code>SERVER_NAME</code> 券版函荐肺 林绢柳促. 角青吝 角力 辑滚疙篮 <directive module="core">UseCanonicalName</directive> 汲沥俊 崔啡促. <code>UseCanonicalName Off</code>捞搁 夸没狼 <code>Host:</code> 庆歹 郴侩捞 辑滚疙捞 等促. <code>UseCanonicalName DNS</code>捞搁 啊惑龋胶飘狼 IP 林家甫 开DNS 八祸窍咯 辑滚疙阑 舅酒辰促. 傈磊绰 捞抚扁馆 悼利 啊惑龋胶飘俊辑 荤侩窍绊, 饶磊绰 IP扁馆 啊惑龋胶飘俊辑 荤侩茄促. <code>Host:</code> 庆歹啊 绝芭唱 DNS 八祸捞 角菩窍咯 酒颇摹啊 辑滚疙阑 舅酒郴瘤 给窍搁 <code>ServerName</code>栏肺 汲沥茄 蔼阑 措脚 荤侩茄促.</p> <p>促弗 `加老' 巴篮 (<code>DocumentRoot</code>肺 汲沥窍哥, CGI俊绰 <code>DOCUMENT_ROOT</code> 券版函荐肺 林绢瘤绰) 巩辑风飘捞促. 老馆利牢 版快 core 葛碘捞 捞 汲沥阑 荤侩窍咯 URI俊 秦寸窍绰 颇老疙阑 茫瘤父, 辑滚甫 悼利 啊惑龋胶泼阑 且锭绰 促弗 葛碘捞 (<code>mod_vhost_alias</code>唱 <code>mod_rewrite</code>) 促弗 规过栏肺 捞繁 累诀阑 茄促. 滴 葛碘 葛滴 <code>DOCUMENT_ROOT</code> 券版函荐甫 荤侩窍瘤 臼栏骨肺 CGI唱 SSI 巩辑啊 捞 蔼阑 荤侩茄促搁 肋给等 搬苞甫 掘阑 荐 乐促.</p></section><section id="simple"><title>埃窜茄 悼利 啊惑龋胶飘</title> <p>困 <a href="#motivation">悼扁</a> 例狼 啊惑龋胶飘 汲沥阑 <code>mod_vhost_alias</code>甫 荤侩窍咯 歹 老馆利栏肺 备泅沁促.</p><example># Host: 庆歹俊辑 辑滚疙阑 舅酒辰促<br />UseCanonicalName Off<br /><br /># 霉锅掳 鞘靛甫 荤侩窍咯 捞 肺弊甫 啊惑龋胶飘喊肺 唱喘 荐 乐促<br />LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br />CustomLog logs/access_log vcommon<br /><br /># 夸没阑 贸府窍扁困秦 颇老疙俊 辑滚疙阑 器窃茄促<br />VirtualDocumentRoot /www/hosts/%0/docs<br />VirtualScriptAlias /www/hosts/%0/cgi-bin</example> <p>捞 汲沥俊辑 <code>UseCanonicalName Off</code>甫 <code>UseCanonicalName DNS</code>肺 函版窍扁父 窍搁 IP扁馆 啊惑龋胶飘啊 等促. 啊惑龋胶飘狼 IP 林家甫 啊瘤绊 颇老疙俊 眠啊且 辑滚疙阑 舅 荐 乐促.</p></section><section id="homepages"><title>啊惑栏肺 龋胶飘窍绰 权其捞瘤 矫胶袍</title> <p>ISP 权其捞瘤 辑滚甫 困秦 困狼 汲沥阑 荐沥沁促. 炼陛 歹 汗棱茄 汲沥阑 荤侩窍搁 <code>www.user.isp.com</code>狼 巩辑甫 <code>/home/user/</code>俊 滴绰 侥栏肺 辑滚疙狼 老何甫 啊瘤绊 颇老疙阑 父甸 荐 乐促. 捞 汲沥篮 <code>cgi-bin</code>阑 阿 啊惑龋胶飘啊 蝶肺 啊瘤瘤臼绊 葛电 啊惑龋胶飘啊 鞍捞 荤侩茄促.</p><example># 扁夯利牢 郴侩篮 困客 鞍促. 弊府绊<br /><br /># 颇老疙俊 辑滚疙狼 老何甫 器窃茄促<br />VirtualDocumentRoot /www/hosts/%2/docs<br /><br /># 窍唱狼 cgi-bin 叼泛配府<br />ScriptAlias /cgi-bin/ /www/std-cgi/<br /></example> <p><module>mod_vhost_alias</module> 巩辑俊绰 歹 汗棱茄 <code>VirtualDocumentRoot</code> 汲沥狼 抗啊 乐促.</p></section><section id="combinations"><title>茄 辑滚俊 咯矾 啊惑龋胶飘 矫胶袍 荤侩窍扁</title> <p>歹 汗棱茄 汲沥狼 抗肺 酒颇摹狼 老馆利牢 <code><VirtualHost></code> 瘤矫绢甫 荤侩窍咯 咯矾 啊惑龋胶飘 汲沥狼 裹困甫 炼例且 荐 乐促. 抗甫 甸绢, 促澜苞 鞍篮 汲沥篮 权其捞瘤 绊按俊 IP 林家 茄俺, 惑诀利牢 绊按俊霸 促弗 IP 林家 茄俺甫 何咯茄促. 拱沸 捞傈贸烦 <code><VirtualHost></code> 汲沥 冀记俊 葛滴 弓阑 荐档 乐促.</p><example>UseCanonicalName Off<br /><br />LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br /><br /><Directory /www/commercial><br /><indent> Options FollowSymLinks<br /> AllowOverride All<br /></indent></Directory><br /><br />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -