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

📄 mod_alias.xml.ko

📁 Apache HTTP Server 是一个功能强大的灵活的与HTTP/1.1相兼容的web服务器.这里给出的是Apache HTTP服务器的源码。
💻 KO
字号:
<?xml version="1.0" encoding="EUC-KR" ?><!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd"><?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?><!-- English Revision: 151405 --><!-- Copyright 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.--><modulesynopsis metafile="mod_alias.xml.meta"><name>mod_alias</name><description>颇老矫胶袍狼 促弗 何盒甸阑 巩辑 拌摸备炼俊 器窃窍绊,    URL 府促捞泛记阑 力傍茄促</description><status>Base</status><sourcefile>mod_alias.c</sourcefile><identifier>alias_module</identifier><summary>    <p>捞 葛碘捞 力傍窍绰 瘤矫绢甸阑 荤侩窍咯 辑滚啊 夸没阑    罐阑锭 URL阑 荐沥窍芭唱 炼累且 荐 乐促. <directive    module="mod_alias">Alias</directive>客 <directive    module="mod_alias">ScriptAlias</directive> 瘤矫绢绰 URL阑    颇老矫胶袍 版肺肺 措览茄促. 弊贰辑 <directive    module="core">DocumentRoot</directive> 酒贰俊 绝绰 郴侩阑    昆栏肺 辑厚胶且 荐 乐促. 肚, <directive    module="mod_alias">ScriptAlias</directive> 瘤矫绢绰 瘤沥茄    叼泛配府俊 CGI 胶农赋飘观俊 绝促绊 舅赴促.</p>    <p><directive module="mod_alias">Redirect</directive> 瘤矫绢绰    努扼捞攫飘俊霸 促弗 URL肺 货肺款 夸没阑 窍档废 瘤矫茄促.    磊盔阑 货肺款 厘家肺 颗变 版快 磊林 荤侩茄促.</p>    <p><module>mod_alias</module>绰 埃窜茄 URL 炼累阑 困秦    汲拌登菌促. 龙狼巩磊凯 炼累苞 鞍篮 汗棱茄 累诀篮    <module>mod_rewrite</module>啊 力傍窍绰 扁瓷阑 捞侩窍扼.</p></summary><seealso><module>mod_rewrite</module></seealso> <seealso><ahref="../urlmapping.html">URL阑 颇老矫胶袍俊 措览</a></seealso><section id="order"><title>贸府 鉴辑</title><p>辑肺 促弗 荤侩厘家俊辑 Alias客 Redirect甫 荤侩窍搁 促弗 瘤矫绢客鞍捞 钎霖 <a href="../sections.html#mergin">搬钦 规过</a>俊蝶扼 贸府茄促. 弊矾唱 鞍篮 荤侩厘家俊 (抗甫 甸绢, 鞍篮 <directivetype="section" module="core">VirtualHost</directive> 冀记俊)Alias客 Redirect甫 荤侩窍搁 酒贰 鉴辑措肺 贸府茄促.</p><p>刚历 葛电 Redirect甫 贸府茄 饶 Alias甫 贸府茄促. 弊贰辑<directive module="mod_alias">Redirect</directive>唱 <directivemodule="mod_alias">RedirectMatch</directive>俊 秦寸窍绰 夸没篮例措肺 Alias窍瘤 臼绰促. 弊府绊 Alias客 Redirect绰 汲沥颇老俊辑霉锅掳肺 唱坷绰 巴阑 荤侩茄促.</p><p>弊贰辑 咯矾 瘤矫绢啊 悼老茄 窍困版肺俊 秦寸窍绰 版快 葛电瘤矫绢甫 利侩窍扁困秦辑绰 啊厘 惑技茄 版肺甫 刚历 荤侩秦具 茄促.抗甫 甸绢, 促澜 汲沥篮 狼档茄措肺 悼累茄促:</p><example>Alias /foo/bar /baz<br />Alias /foo /gaq</example><p>弊矾唱 困狼 滴 瘤矫绢 鉴辑甫 官操搁 <code>/foo/bar</code><directive module="mod_alias">Alias</directive> 捞傈俊<code>/foo</code> <directive module="mod_alias">Alias</directive>甫利侩窍骨肺 亲惑 滴锅掳 瘤矫绢甫 公矫茄促.</p></section><directivesynopsis><name>Alias</name><description>URL阑 漂沥 颇老矫胶袍 厘家肺 措览茄促</description><syntax>Alias <var>URL-path</var><var>file-path</var>|<var>directory-path</var></syntax><contextlist><context>server config</context><context>virtual host</context></contextlist><usage>    <p><directive>Alias</directive> 瘤矫绢甫 荤侩窍搁 颇老矫胶袍俊辑    <directive module="core">DocumentRoot</directive> 观俊 乐绰    巩辑档 辑厚胶且 荐 乐促. <var>url-path</var>肺 矫累窍绰    (%肺 牢内爹等) URL阑 <var>directory-path</var>肺 矫累窍绰    颇老俊 措览茄促.</p>    <example><title>抗力:</title>      Alias /image /ftp/pub/image    </example>    <p>http://myserver/image/foo.gif甫 夸没窍搁 辑滚绰    /ftp/pub/image/foo.gif 颇老阑 逞败霖促.</p>    <p><var>url-path</var> 场俊 /甫 器窃窍搁, URL 场俊 /甫    荤侩秦具父 康氢捞 乐澜阑 林狼窍扼. 溜, <code>Alias /icons/    /usr/local/apache/icons/</code> 汲沥篮 url <code>/icons</code>客    包拌啊 绝促.</p>    <p>措览狼 <em>措惑</em>阑 器窃窍绰 咯矾 <directive    type="section" module="core">Directory</directive> 冀记捞    鞘夸且瘤档 葛弗促. 捞 瘤矫绢绰 <directive type="section"    module="core">Directory</directive> 冀记阑 八荤窍扁 傈俊    贸府窍骨肺, 措览狼 措惑父 冀记狼 康氢阑 罐绰促. (弊矾唱    <directive type="section" module="core">Location</directive>    冀记篮 捞 瘤矫绢甫 贸府窍扁 傈俊 茄锅父 八荤窍骨肺 瘤沥茄    URL 捞窍 傈眉俊 康氢阑 霖促.)</p>    <p>漂洒 <directive module="core">DocumentRoot</directive>    观俊 乐绰 叼泛配府肺 <code>Alias</code>甫 父甸菌促搁, 流立    措惑 叼泛配府狼 立辟阑 倾侩秦拎具 茄促.</p>    <example><title>抗力:</title>        Alias /image /ftp/pub/image<br />        &lt;Directory /ftp/pub/image&gt;<br />        <indent>            Order allow,deny<br />            Allow from all<br />        </indent>        &lt;/Directory&gt;    </example></usage></directivesynopsis><directivesynopsis><name>AliasMatch</name><description>沥痹钎泅侥阑 荤侩窍咯 URL阑 颇老矫胶袍 厘家肺措览茄促</description><syntax>AliasMatch <var>regex</var><var>file-path</var>|<var>directory-path</var></syntax><contextlist><context>server config</context><context>virtual host</context></contextlist><usage>    <p>捞 瘤矫绢绰 <directive module="mod_alias">Alias</directive>客    鞍瘤父, 埃窜洒 URL狼 菊何盒父 厚背窍绰 措脚 钎霖 沥痹钎泅侥阑    荤侩茄促. 瘤沥茄 沥痹钎泅侥阑 URL 版肺客 厚背窍咯 嘎促搁,    辑滚绰 褒龋肺 弓篮 何盒阑 措眉窍咯 颇老疙栏肺 荤侩茄促.    抗甫 甸绢, 促澜苞 鞍捞 <code>/icons</code> 叼泛配府甫 荤侩且    荐 乐促:</p>    <example>      AliasMatch ^/icons(.*) /usr/local/apache/icons$1    </example></usage></directivesynopsis><directivesynopsis><name>Redirect</name><description>努扼捞攫飘啊 促弗 URL俊 立加窍档废 夸没窍绰 寇何府促捞泛记阑 焊辰促</description><syntax>Redirect [<var>status</var>] <var>URL-path</var><var>URL</var></syntax><contextlist><context>server config</context><context>virtual host</context><context>directory</context><context>.htaccess</context></contextlist><override>FileInfo</override><usage>    <p>Redirect 瘤矫绢绰 捞傈 URL阑 货肺款 URL肺 措览茄促.    努扼捞攫飘俊霸 货肺款 URL阑 焊郴绊, 努扼捞攫飘绰 货肺款    林家肺 促矫 茄锅 立加茄促. (%肺 牢内爹等) <var>URL-path</var>肺    矫累窍绰 夸没阑 罐栏搁 (%肺 牢内爹等) <var>URL</var>肺 矫累窍绰    货肺款 URL肺 府促捞泛记 坷幅甫 焊辰促.</p>    <example><title>抗力:</title>      Redirect /service http://foo2.bar.com/service    </example>    <p>努扼捞攫飘啊 http://myserver/service/foo.txt甫 夸没窍搁    措脚 http://foo2.bar.com/service/foo.txt俊 立辟窍扼绰 览翠阑    罐绰促.</p><note><title>林狼</title> <p>Redirect 瘤矫绢绰 汲沥颇老俊辑唱坷绰 鉴辑客 包拌绝捞 Alias客 ScriptAlias 瘤矫绢焊促 快急鉴困啊臭促. 肚, .htaccess 颇老捞唱 <directive type="section"module="core">Directory</directive> 冀记俊辑 荤侩窍歹扼档<var>URL-path</var>俊绰 惑措版肺啊 酒聪扼 馆靛矫 肯傈茄 URL阑荤侩秦具 茄促.</p></note>    <p><var>status</var> 酒痹刚飘甫 瘤沥窍瘤臼栏搁, "烙矫    (temporary)" (HTTP 惑怕 302) 府促捞泛记阑 焊辰促. 溜,    努扼捞攫飘俊霸 磊盔阑 烙矫肺 颗板促绊 舅赴促. <var>status</var>    酒痹刚飘甫 荤侩窍咯 促弗 HTTP 惑怕内靛甫 馆券且 荐 乐促:</p>    <dl>      <dt>permanent</dt>      <dd>磊盔阑 肯傈洒 颗板澜阑 舵窍绰 康备 府促捞泛记 惑怕甫      (301) 馆券茄促.</dd>      <dt>temp</dt>      <dd>烙矫 府促捞泛记 惑怕甫 (302) 馆券茄促. 扁夯蔼捞促.</dd>      <dt>seeother</dt>      <dd>磊盔捞 背眉登菌澜阑 舵窍绰 "曼炼 (See Other)" 惑怕甫      (303) 馆券茄促.</dd>      <dt>gone</dt>      <dd>磊盔捞 康备洒 昏力登菌澜阑 舵窍绰 "家戈 (Gone)" 惑怕甫      (410) 馆券茄促. 捞 惑怕甫 荤侩窍搁 <var>URL</var> 酒痹刚飘甫      荤侩且 荐 绝促.</dd>    </dl>    <p><var>status</var>俊 箭磊 惑怕内靛甫 荤侩窍咯 促弗 惑怕内靛档    馆券且 荐 乐促. 惑怕啊 300苞 399 荤捞扼搁 <var>URL</var>    酒痹刚飘甫 荤侩秦具 窍绊, 酒聪扼搁 积帆秦具 茄促. 窜, 酒颇摹    内靛俊 惑怕啊 沥狼登乐绢具 茄促 (http_protocol.c狼    <code>send_error_response</code> 窃荐 曼绊).</p>    <example><title>抗力:</title>      Redirect permanent /one http://example.com/two<br />      Redirect 303 /three http://example.com/other    </example></usage></directivesynopsis><directivesynopsis><name>RedirectMatch</name><description>泅犁 URL捞 沥痹钎泅侥俊 秦寸窍搁 寇何 府促捞泛记阑焊辰促</description><syntax>RedirectMatch [<var>status</var>] <var>regex</var><var>URL</var></syntax><contextlist><context>server config</context><context>virtual host</context><context>directory</context><context>.htaccess</context></contextlist><override>FileInfo</override><usage>    <p>捞 瘤矫绢绰 <directive    module="mod_alias">Redirect</directive>客 鞍瘤父, 埃窜洒    URL狼 菊何盒父 厚背窍绰 措脚 钎霖 沥痹钎泅侥阑 荤侩茄促.    瘤沥茄 沥痹钎泅侥阑 URL 版肺客 厚背窍咯 嘎促搁, 辑滚绰 褒龋肺    弓篮 何盒阑 措眉窍咯 颇老疙栏肺 荤侩茄促. 抗甫 甸绢, 促澜篮    葛电 GIF 颇老 夸没俊 措秦 促弗 辑滚狼 厚搅茄 捞抚阑 啊柳    JPEG 颇老肺 府促捞泛记阑 焊辰促:</p>    <example>      RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg    </example></usage></directivesynopsis><directivesynopsis><name>RedirectTemp</name><description>努扼捞攫飘啊 促弗 URL俊 立加窍档废 夸没窍绰 寇何烙矫 府促捞泛记阑 焊辰促</description><syntax>RedirectTemp <var>URL-path</var> <var>URL</var></syntax><contextlist><context>server config</context><context>virtual host</context><context>directory</context><context>.htaccess</context></contextlist><override>FileInfo</override><usage>    <p>捞 瘤矫绢绰 努扼捞攫飘俊霸 府促捞泛记捞 烙矫利烙阑 (惑怕    302) 舅赴促. <code>Redirect temp</code>客 沥犬洒 鞍促.</p></usage></directivesynopsis><directivesynopsis><name>RedirectPermanent</name><description>努扼捞攫飘啊 促弗 URL俊 立加窍档废 夸没窍绰 寇何康备 府促捞泛记阑 焊辰促</description><syntax>RedirectPermanent <var>URL-path</var> <var>URL</var></syntax><contextlist><context>server config</context><context>virtual host</context><context>directory</context><context>.htaccess</context></contextlist><override>FileInfo</override><usage>    <p>捞 瘤矫绢绰 努扼捞攫飘俊霸 府促捞泛记捞 康备利烙阑 (惑怕    301) 舅赴促. <code>Redirect permanent</code>客 沥犬洒 鞍促.</p></usage></directivesynopsis><directivesynopsis><name>ScriptAlias</name><description>URL阑 漂沥 颇老矫胶袍 厘家肺 措览窍绊 措惑捞 CGI胶农赋飘扼绊 舅赴促</description><syntax>ScriptAlias <var>URL-path</var><var>file-path</var>|<var>directory-path</var></syntax><contextlist><context>server config</context><context>virtual host</context></contextlist><usage>    <p><directive>ScriptAlias</directive> 瘤矫绢绰 <directive    module="mod_alias">Alias</directive> 瘤矫绢客 厚搅窍瘤父,    眠啊肺 措惑 叼泛配府俊 <module >mod_cgi</module>狼 cgi-script    勤甸矾啊 贸府且 CGI 胶农赋飘啊 乐促绊 舅赴促.    <var>URL-path</var>肺 矫累窍绰 (%肺 牢内爹等) URL阑 颇老矫胶袍狼    例措版肺牢 滴锅掳 酒痹刚飘肺 矫累窍绰 胶农赋飘俊 措览茄促.</p>    <example><title>抗力:</title>      ScriptAlias /cgi-bin/ /web/cgi-bin/    </example>    <p><code>http://myserver/cgi-bin/foo</code>甫 夸没窍搁 辑滚绰    <code>/web/cgi-bin/foo</code> 胶农赋飘甫 角青茄促.</p></usage></directivesynopsis><directivesynopsis><name>ScriptAliasMatch</name><description>沥痹钎泅侥阑 荤侩窍咯 URL阑 漂沥 颇老矫胶袍 厘家肺措览窍绊 措惑捞 CGI 胶农赋飘扼绊 舅赴促</description><syntax>ScriptAliasMatch <var>regex</var><var>file-path</var>|<var>directory-path</var></syntax><contextlist><context>server config</context><context>virtual host</context></contextlist><usage>    <p>捞 瘤矫绢绰 <directive    module="mod_alias">ScriptAlias</directive>客 鞍瘤父, 埃窜洒    URL狼 菊何盒父 厚背窍绰 措脚 钎霖 沥痹钎泅侥阑 荤侩茄促.    瘤沥茄 沥痹钎泅侥阑 URL 版肺客 厚背窍咯 嘎促搁, 辑滚绰 褒龋肺    弓篮 何盒阑 措眉窍咯 颇老疙栏肺 荤侩茄促. 抗甫 甸绢, 促澜苞    鞍捞 钎霖利牢 <code>/cgi-bin</code>阑 荤侩且 荐 乐促:</p>    <example>      ScriptAliasMatch ^/cgi-bin(.*) /usr/local/apache/cgi-bin$1    </example></usage></directivesynopsis></modulesynopsis>

⌨️ 快捷键说明

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