⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 examples.xml.ko

📁 Apache HTTP Server 是一个功能强大的灵活的与HTTP/1.1相兼容的web服务器.这里给出的是Apache HTTP服务器的源码。
💻 KO
📖 第 1 页 / 共 2 页
字号:
    <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 />    &lt;VirtualHost 172.20.30.40:80&gt;<br />    <indent>        DocumentRoot /www/example1-80<br />        ServerName www.example1.com<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.40:8080&gt;<br />    <indent>        DocumentRoot /www/example1-8080<br />        ServerName www.example1.com<br />		</indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.50:80&gt;<br />    <indent>        DocumentRoot /www/example2-80<br />        ServerName www.example1.org<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.50:8080&gt;<br />    <indent>        DocumentRoot /www/example2-8080<br />        ServerName www.example2.org<br />    </indent>    &lt;/VirtualHost&gt;    </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 />    &lt;VirtualHost 172.20.30.40&gt;<br />    <indent>        DocumentRoot /www/example1<br />        ServerName www.example1.com<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.40&gt;<br />    <indent>        DocumentRoot /www/example2<br />        ServerName www.example2.org<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.40&gt;<br />    <indent>        DocumentRoot /www/example3<br />        ServerName www.example3.net<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    # IP-扁馆<br />    &lt;VirtualHost 172.20.30.50&gt;<br />    <indent>        DocumentRoot /www/example4<br />        ServerName www.example4.edu<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.60&gt;<br />    <indent>        DocumentRoot /www/example5<br />        ServerName www.example5.gov<br />    </indent>    &lt;/VirtualHost&gt;    </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>    &lt;VirtualHost _default_:*&gt;<br />    <indent>        DocumentRoot /www/default<br />    </indent>    &lt;/VirtualHost&gt;    </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>    &lt;VirtualHost _default_:80&gt;<br />    <indent>        DocumentRoot /www/default80<br />        # ...<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost _default_:*&gt;<br />    <indent>        DocumentRoot /www/default<br />        # ...<br />    </indent>    &lt;/VirtualHost&gt;    </example>    <p>80锅 器飘俊 措茄 default 啊惑龋胶飘绰 (<em>馆靛矫</em>    客老靛墨靛 器飘甫 啊柳 扁夯 啊惑龋胶飘 捞傈俊 唱客具 茄促)    瘤沥窍瘤臼篮 IP 林家肺 焊郴柳 葛电 夸没阑 辑厚胶茄促.    林辑滚绰 例措肺 夸没阑 辑厚胶窍瘤 给茄促.</p>    </section>    <section id="defaultoneport"><title>茄 器飘俊 措茄    <code>_default_</code> 啊惑龋胶飘</title>    <p>80锅 器飘俊 措秦辑父 default 啊惑龋胶飘甫 父甸绊 酵促.</p>    <example>    <title>辑滚 汲沥</title>    &lt;VirtualHost _default_:80&gt;<br />    DocumentRoot /www/default<br />    ...<br />    &lt;/VirtualHost&gt;    </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 />    &lt;VirtualHost 172.20.30.40 172.20.30.50&gt;<br />    <indent>        DocumentRoot /www/example2<br />        ServerName www.example2.org<br />        # ...<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.40&gt;<br />    <indent>        DocumentRoot /www/example3<br />        ServerName www.example3.net<br />        ServerAlias *.example3.net<br />        # ...<br />    </indent>    &lt;/VirtualHost&gt;    </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 />    &lt;VirtualHost 172.20.30.40&gt;<br />    <indent>        # primary vhost<br />        DocumentRoot /www/subdomain<br />        RewriteEngine On<br />        RewriteRule ^/.* /www/subdomain/index.html<br />        # ...<br />    </indent>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.40&gt;<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>    &lt;/VirtualHost&gt;<br />		<br />    &lt;VirtualHost 172.20.30.40&gt;<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>    &lt;/VirtualHost&gt;    </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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -