๐ Viewing: mod_alias.html.ja.utf8
<?xml version="1.0" encoding="UTF-8"?>
<!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="ja" xml:lang="ja"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>mod_alias - Apache HTTP ใตใผใ ใใผใธใงใณ 2.2</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>
<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 ใตใผใ ใใผใธใงใณ 2.2</p>
<img alt="" src="../images/feather.gif" /></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 ใตใผใ</a> > <a href="http://httpd.apache.org/docs/">ใใญใฅใกใณใใผใทใงใณ</a> > <a href="../">ใใผใธใงใณ 2.2</a> > <a href="./">ใขใธใฅใผใซ</a></div>
<div id="page-content">
<div id="preamble"><h1>Apache ใขใธใฅใผใซ mod_alias</h1>
<div class="toplang">
<p><span>็ฟป่จณๆธใฟ่จ่ช: </span><a href="../en/mod/mod_alias.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/mod/mod_alias.html" title="Japanese"> ja </a> |
<a href="../ko/mod/mod_alias.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
<a href="../tr/mod/mod_alias.html" hreflang="tr" rel="alternate" title="Tรผrkรงe"> tr </a></p>
</div>
<div class="outofdate">ใใฎๆฅๆฌ่ช่จณใฏใใงใซๅคใใชใฃใฆใใ
ๅฏ่ฝๆงใใใใพใใ
ๆ่ฟๆดๆฐใใใๅ
ๅฎนใ่ฆใใซใฏ่ฑ่ช็ใใ่ฆงไธใใใ
</div>
<table class="module"><tr><th><a href="module-dict.html#Description">่ชฌๆ:</a></th><td>ใในใใใกใคใซใทในใใ ไธใฎใใใใใช้ใๅ ดๆใ
ใใญใฅใกใณใใใชใผใซใใใใใๆฉ่ฝใจใ
URL ใฎใชใใคใฌใฏใใ่กใชใๆฉ่ฝใๆไพใใ</td></tr>
<tr><th><a href="module-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="module-dict.html#ModuleIdentifier">ใขใธใฅใผใซ่ญๅฅๅญ:</a></th><td>alias_module</td></tr>
<tr><th><a href="module-dict.html#SourceFile">ใฝใผในใใกใคใซ:</a></th><td>mod_alias.c</td></tr></table>
<h3>ๆฆ่ฆ</h3>
<p>ใใฎใขใธใฅใผใซใฎใใฃใฌใฏใใฃใใฏใตใผใใซใชใฏใจในใใๅฐ็ใใใจใใซ
URL ใฎๆไฝใๅถๅพกใใใใใจใๅฏ่ฝใซใใพใใ<code class="directive"><a href="#alias">Alias</a></code>
ใใฃใฌใฏใใฃใใจ <code class="directive"><a href="#scriptalias">ScriptAlias</a></code>
ใใฃใฌใฏใใฃใใฏ
URL ใจใใกใคใซใทในใใ ใฎใในใใใใใใใใใซไฝฟ็จใใใพใใใใใฏ
<code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>
ใฎไธใซใชใใใญใฅใกใณใใใฆใงใใฎใใญใฅใกใณใใใชใผใฎไธ้จใจใใฆ
้ใใใใใใซใใพใใ<code class="directive"><a href="#scriptalias">ScriptAlias</a></code>
ใใฃใฌใฏใใฃใใซใฏใใใๅ
ใฎใใฃใฌใฏใใชใ CGI
ในใฏใชใใใฎใฟใงใใใใจใ็คบใใจใใ่ฟฝๅ ใฎๅนๆใใใใพใใ
</p>
<p><code class="directive"><a href="#redirect">Redirect</a></code> ใใฃใฌใฏใใฃใใฏ
ใฏใฉใคใขใณใใซ้ใฃใ
URL ใซๆฐใใใชใฏใจในใใ้ใใใใซๆ็คบใใพใใใใใฏใ
ใชใฝใผในใๆฐใใๅ ดๆใซ็งปๅใใใจใใซใใไฝฟ็จใใใพใใ</p>
<p><code class="module"><a href="../mod/mod_alias.html">mod_alias</a></code> ใฏ็ฐกๅใช URL ๆไฝๅใใซ่จญ่จใใใฆใใพใใ
ใใ่ค้ใชๆไฝใใฏใจใชใผในใใชใณใฐใฎๆไฝใซใฏใ<code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>
ใงๆไพใใใใใผใซใไฝฟ็จใใฆใใ ใใใ</p>
</div>
<div id="quickview"><h3>ใใใใฏ</h3>
<ul id="topics">
<li><img alt="" src="../images/down.gif" /> <a href="#order">ๅฆ็ใฎ้ ็ช</a></li>
</ul><h3 class="directives">ใใฃใฌใฏใใฃใ</h3>
<ul id="toc">
<li><img alt="" src="../images/down.gif" /> <a href="#alias">Alias</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#aliasmatch">AliasMatch</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#redirect">Redirect</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#redirectmatch">RedirectMatch</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#redirectpermanent">RedirectPermanent</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#redirecttemp">RedirectTemp</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#scriptalias">ScriptAlias</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#scriptaliasmatch">ScriptAliasMatch</a></li>
</ul>
<h3>ๅ็
ง</h3>
<ul class="seealso">
<li><code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code></li>
<li><a href="../urlmapping.html">URL ใใใใกใคใซใทในใใ ไธใฎไฝ็ฝฎใธใฎใใใใณใฐ</a></li>
</ul><ul class="seealso"><li><a href="#comments_section">ใณใกใณใ</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="order" id="order">ๅฆ็ใฎ้ ็ช</a></h2>
<p>ๆงใ
ใชใณใณใใญในใไธญใงใฎ Alias ใ Redirect ใฏไปใฎใใฃใฌใฏใใฃใใจ
ๅใใใใซๆจๆบใฎ <a href="../sections.html#mergin">ใใผใธ่ฆๅ</a> ใซ
ๅพใฃใฆๅฆ็ใใใพใใใใ ใใ(ไพใใฐ <code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code> ใปใฏใทใงใณใฎไธญใฎใใใซ) ่คๆฐใฎ Alias ใ Redirect ใ
ๅใใณใณใใญในใไธญใซ็พใใๅ ดๅใฏๆฑบใพใฃใ้ ็ชใงๅฆ็ใใใพใใ</p>
<p>ใพใใAlias ใฎๅใซใในใฆใฎ Redirect ใๅฆ็ใใใพใใใงใใใใ<code class="directive"><a href="#redirect">Redirect</a></code> ใ <code class="directive"><a href="#redirectmatch">RedirectMatch</a></code> ใซใใใใใใชใฏใจในใใซใฏ
Alias ใฏๆฑบใใฆ้ฉ็จใใใพใใใๆฌกใซใAlias ใจ Redirect ใ่จญๅฎใใกใคใซไธญใฎ
้ ็ชใซ้ฉ็จใใใๆๅใซใใใใใใใฎใๅชๅ
ใใใพใใ</p>
<p>ใงใใใใไบใคไปฅไธใฎใใฃใฌใฏใใฃใใๅใใในใซ้ฉ็จใใใใจใใฏใ
ใในใฆใฎใใฃใฌใฏใใฃใใฎๅนๆใๅพใใใใซใฏใใ่ฉณใใใในใๅ
ใซๆธใ
ๅฟ
่ฆใใใใพใใไพใใฐใๆฌกใฎ่จญๅฎใฏๆๅพ
้ใใฎๅไฝใใใพใ:</p>
<div class="example"><p><code>
Alias /foo/bar /baz<br />
Alias /foo /gaq
</code></p></div>
<p>ใใใใไธ่จใฎไบใคใฎใใฃใฌใฏใใฃใใฎ้ ็ชใ้ใซใชใใจใ
<code>/foo</code> <code class="directive"><a href="#alias">Alias</a></code> ใ
ๅธธใซ <code>/foo/bar</code> <code class="directive"><a href="#alias">Alias</a></code> ใใๅ
ใซใใใใใพใใฎใงใๅพ่
ใฏ
ๆฑบใใฆ้ฉ็จใใใใใจใฏใใใพใใใ</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="Alias" id="Alias">Alias</a> <a name="alias" id="alias">ใใฃใฌใฏใใฃใ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ:</a></th><td>URL ใใใกใคใซใทในใใ ใฎไฝ็ฝฎใซใใใใใ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆงๆ:</a></th><td><code>Alias <var>URL-path</var>
<var>file-path</var>|<var>directory-path</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใณใณใใญในใ:</a></th><td>ใตใผใ่จญๅฎใใกใคใซ, ใใผใใฃใซใในใ</td></tr>
<tr><th><a href="directive-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใขใธใฅใผใซ:</a></th><td>mod_alias</td></tr>
</table>
<p><code class="directive">Alias</code> ใใฃใฌใฏใใฃใใฏใใญใฅใกใณใใ
ใญใผใซใซใใกใคใซใทในใใ ใฎ
<code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>
ไปฅๅคใฎๅ ดๆใซไฟ็ฎกใใใใจใๅฏ่ฝใซใใพใใ
URL ใฎ (% ใๅพฉๅทใใใ) ใในใ <var>url-path</var> ใงๅงใพใใใฎใฏ
<var>directory-filename</var>
ใงๅงใพใใญใผใซใซใใกใคใซใซใใใใใใพใใ</p>
<div class="example"><h3>ไพ</h3><p><code>
Alias /image /ftp/pub/image
</code></p></div>
<p>http://myserver/image/foo.gif ใธใฎใชใฏใจในใใซๅฏพใใฆใใตใผใใฏ
ใใกใคใซ /ftp/pub/image/foo.gif ใ่ฟใใพใใๅฎๅ
จใชใในใปใฐใกใณใใ
ไธ่ดใใๆใซใฎใฟๅใใพใใฎใงใไธใฎไพใฏ http://myserver/imagefoo.gif
ใซๅฏพใใใชใฏใจในใใซใฏใใใใใพใใใๆญฃ่ฆ่กจ็พใไฝฟใฃใใใ่ค้ใช
ใใใใณใฐใซ้ขใใฆใฏ <code class="directive"><a href="#aliasmatch">AliasMatch</a></code>
ใใฃใฌใฏใใฃใใใ่ฆงใใ ใใใ</p>
<p>ใใ <var>url-path</var> ใฎๆๅพใซ /
ใๆธใใใชใใใตใผใใใจใคใชใขในใๅฑ้ใใใใใซใฏใๆๅพใฎ /
ใๅฟ
่ฆใซใชใใใจใซๆณจๆใใฆใใ ใใใใใชใใกใ<code>Alias /icons/
/usr/local/apache/icons/</code> ใจใใใใฎใไฝฟ็จใใฆใใๅ ดๅใฏใ
<code>/icons</code> ใจใใ url ใฏใจใคใชใขในใใใพใใใ</p>
<p>ใจใคใชใขในใฎ<em>่กใๅ
</em>ใๅซใใงใใ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code>
ใปใฏใทใงใณใ่ฟฝๅ ใใๅฟ
่ฆใใใใใใใใชใใใจใซๆณจๆใใฆใใ ใใใ
ใจใคใชใขในใฎๅฑ้ใฏ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code>
ใปใฏใทใงใณใ่ชฟในใๅใซ่กใชใใใพใใฎใงใ
ใจใคใชใขในใฎ่กใๅ
ใฎ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> ใปใฏใทใงใณใฎใฟ
ๅนๆใใใใพใใ
(ใใใใ<code class="directive"><a href="../mod/core.html#location"><Location></a></code>
ใปใฏใทใงใณใฏใจใคใชใขในใๅฆ็ใใใๅใซๅฎ่กใใใพใใฎใงใ
ใใกใใฏ้ฉ็จใใใพใใ)</p>
<p>็นใซใ<code>Alias</code> ใ
<code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>
ใใฃใฌใฏใใชใฎๅคๅดใซ้
็ฝฎใใๅ ดๅใฏใ่กใๅ
ใฎใใฃใฌใฏใใชใซๅฏพใใ
ใขใฏใปในๆจฉ้ใๆ็คบ็ใซๅถ้ใใชใใใฐใชใใชใใงใใใใ</p>
<div class="example"><h3>ไพ</h3><p><code>
Alias /image /ftp/pub/image<br />
<Directory /ftp/pub/image><br />
<span class="indent">
Order allow,deny<br />
Allow from all<br />
</span>
</Directory>
</code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="AliasMatch" id="AliasMatch">AliasMatch</a> <a name="aliasmatch" id="aliasmatch">ใใฃใฌใฏใใฃใ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ:</a></th><td>ๆญฃ่ฆ่กจ็พใไฝฟใฃใฆ URL ใใใกใคใซใทในใใ ใฎไฝ็ฝฎใซใใใใใ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆงๆ:</a></th><td><code>AliasMatch <var>regex</var>
<var>file-path</var>|<var>directory-path</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใณใณใใญในใ:</a></th><td>ใตใผใ่จญๅฎใใกใคใซ, ใใผใใฃใซใในใ</td></tr>
<tr><th><a href="directive-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใขใธใฅใผใซ:</a></th><td>mod_alias</td></tr>
</table>
<p>ใใฎใใฃใฌใฏใใฃใใฏ <code class="directive"><a href="#alias">Alias</a></code>
ใจใปใจใใฉๅใใงใใใ็ฐกๅใชๅ
้ ญใใใฎใใใใ่กใชใใฎใงใฏใชใใ
<a class="glossarylink" href="../glossary.html#regex" title="็จ่ช้ใๅ็
ง">ๆญฃ่ฆ่กจ็พ</a>ใๅฉ็จใใพใใ
ใใใงๆๅฎใใใๆญฃ่ฆ่กจ็พใจ URL ใฎใใน
ใๅใใใฉใใใ่ชฟในใๅใๅ ดๅใฏๆฌๅผงใงๆฌใใใใใใใ
ไธใใใใๆๅญๅใง็ฝฎใๆใใใใใใใกใคใซๅใจใใฆไฝฟ็จใใพใใใใจใใฐใ
<code>/icons</code> ใใฃใฌใฏใใชใไฝฟใ
ใใใซใฏไปฅไธใฎใใใชใใฎใไฝฟ็จใงใใพใ:</p>
<div class="example"><p><code>
AliasMatch ^/icons(.*) /usr/local/apache/icons$1
</code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="Redirect" id="Redirect">Redirect</a> <a name="redirect" id="redirect">ใใฃใฌใฏใใฃใ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ:</a></th><td>ใฏใฉใคใขใณใใ้ใ URL ใๅๅพใใใใใซๅค้จใธใฎใชใใคใฌใฏใใ
้ใ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆงๆ:</a></th><td><code>Redirect [<var>status</var>] <var>URL-path</var>
<var>URL</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใณใณใใญในใ:</a></th><td>ใตใผใ่จญๅฎใใกใคใซ, ใใผใใฃใซใในใ, ใใฃใฌใฏใใช, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">ไธๆธใ:</a></th><td>FileInfo</td></tr>
<tr><th><a href="directive-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใขใธใฅใผใซ:</a></th><td>mod_alias</td></tr>
</table>
<p>Redirect ใใฃใฌใฏใใฃใใฏๅคใ URL ใๆฐใใใใฎใธใใใใใฆใ
ใฏใฉใคใขใณใใซๆฐใใๅ ดๆใ่จชใใใใใซๆใ็คบใใพใใ</p>
<p>ๅคใ <var>URL-path</var> (% ใๅพฉๅทใใใ) ใในใฏใ
ในใฉใใทใฅใงๅงใพใใใฎใงใใ็ธๅฏพใในใฏไฝฟ็จใงใใพใใใ
ๆฐใใ <em>URL</em> ใฏ็ตถๅฏพ URL ใใคใพใในใญใผใ ใจใในใๅใง
ๅงใพใใใฎใงใใในใใงใใใURL-path ใฎใในใฉใใทใฅใงๅงใพใใใฎใ
ไฝฟ็จๅฏ่ฝใงใใใใฎๅ ดๅใฏใ็พๅจใฎในใญใผใ ใจใในใๅใ่ฟฝๅ ใใใใใจใซ
ใชใใพใใ</p>
<p><em>URL-Path</em> ใงๅงใพใใฉใใชใชใฏใจในใใใใฟใผใฒใใใฎ
<em>URL</em> ใธใจใชใใคใฌใฏใใ่ฟใใใพใใ<em>URL-Path</em>
ใซใใใใใ path ๆ
ๅ ฑใฏใใฟใผใฒใใ URL ใฎๅพใใซ่ฟฝๅ ใใใ
ๅฝขใงๅผใ็ถใใใพใใ</p>
<div class="example"><h3>ไพ</h3><p><code>
Redirect /service http://foo2.example.com/service
</code></p></div>
<p>ใฏใฉใคใขใณใใฏ http://example.com/service/foo.txt
ใธใฎใชใฏใจในใใ่กใชใใจใไปฃใใใซ http://foo2.example.com/service/foo.txt
ใใขใฏใปในใใใใใซๅใใใใพใใ
ใในใปใฐใกใณใใๅฎๅ
จใซไธ่ดใใใใฎใฎใฟใใใใใใพใใฎใงใ
ไธ่จใฎไพใฏ http://example.com/servicefoo.txt ใซใฏใใใใใพใใใ
ๆญฃ่ฆ่กจ็พใไฝฟใฃใใใ่ค้ใชใใใใณใฐใซใคใใฆใฏใ
<code class="directive"><a href="#redirectmatch">RedirectMatch</a></code>
ใใฃใฌใฏใใฃใใใ่ฆงใใ ใใใ</p>
<div class="note"><h3>ๆณจๆ</h3><p>่จญๅฎใใกใคใซไธญใฎ้ ็ชใซ้ขใใใใ
Redirect ็ณปใฎใใฃใฌใฏใใฃใใฏ Alias
ใใฃใฌใฏใใฃใใจ ScriptAlias ใใฃใฌใฏใใฃใใใใๅชๅ
ใใใพใใ</p></div>
<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> ๅผๆฐใฏๅญๅจใใฆใใชใใใฐใใใพใใใ
ใใฎไปใฎๅ ดๅใฏ็็ฅใใใฆใใชใใใฐใชใใพใใใใใ ใใ
ในใใผใฟในใฏ Apache ใฎใณใผใใ็ฅใฃใฆใใใใฎใงใใๅฟ
่ฆใใใใพใ
(http_protocol.c ใฎ้ขๆฐ <code>send_error_response</code>
ใ่ฆใฆใใ ใใ)ใ</p>
<p>ไพ:</p>
<div class="example"><h3>ไพ</h3><p><code>
Redirect permanent /one http://example.com/two<br />
Redirect 303 /three http://example.com/other
</code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="RedirectMatch" id="RedirectMatch">RedirectMatch</a> <a name="redirectmatch" id="redirectmatch">ใใฃใฌใฏใใฃใ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ:</a></th><td>็พๅจใฎ URL ใธใฎๆญฃ่ฆ่กจ็พใฎใใใใซใใ
ๅค้จใธใฎใชใใคใฌใฏใใ้ใ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆงๆ:</a></th><td><code>RedirectMatch [<var>status</var>] <var>regex</var>
<var>URL</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใณใณใใญในใ:</a></th><td>ใตใผใ่จญๅฎใใกใคใซ, ใใผใใฃใซใในใ, ใใฃใฌใฏใใช, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">ไธๆธใ:</a></th><td>FileInfo</td></tr>
<tr><th><a href="directive-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใขใธใฅใผใซ:</a></th><td>mod_alias</td></tr>
</table>
<p>ใใฎใใฃใฌใฏใใฃใใฏ <code class="directive"><a href="#redirect">Redirect</a></code>
ใจใปใจใใฉๅใใงใใใ็ฐกๅใชๅ
้ ญใใใฎใใใใ่กใชใใฎใงใฏใชใใ
<a class="glossarylink" href="../glossary.html#regex" title="็จ่ช้ใๅ็
ง">ๆญฃ่ฆ่กจ็พ</a>ใๅฉ็จใใพใใ
ใใใงๆๅฎใใใๆญฃ่ฆ่กจ็พใจ URL-path
ใๅใใใฉใใใ่ชฟในใๅใๅ ดๅใฏๆฌๅผงใงๆฌใใใใใใใ
ไธใใใใๆๅญๅใง็ฝฎใๆใใใใใใใกใคใซๅใจใใฆไฝฟ็จใใพใใ
ใใจใใฐใใในใฆใฎ GIF ใใกใคใซใๅฅใตใผใใฎๅๆงใชๅๅใฎ JPEG
ใใกใคใซใซใชใใคใฌใฏใใใใซใฏใไปฅไธใฎใใใชใใฎใไฝฟใใพใ:
</p>
<div class="example"><p><code>
RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg
</code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="RedirectPermanent" id="RedirectPermanent">RedirectPermanent</a> <a name="redirectpermanent" id="redirectpermanent">ใใฃใฌใฏใใฃใ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ:</a></th><td>ใฏใฉใคใขใณใใ้ใ URL ใๅๅพใใใใใซๅค้จใธใฎๆฐธไน
็ใช
ใชใใคใฌใฏใใ้ใ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆงๆ:</a></th><td><code>RedirectPermanent <var>URL-path</var> <var>URL</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใณใณใใญในใ:</a></th><td>ใตใผใ่จญๅฎใใกใคใซ, ใใผใใฃใซใในใ, ใใฃใฌใฏใใช, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">ไธๆธใ:</a></th><td>FileInfo</td></tr>
<tr><th><a href="directive-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใขใธใฅใผใซ:</a></th><td>mod_alias</td></tr>
</table>
<p>ใใฎใใฃใฌใฏใใฃใใฏใฏใฉใคใขใณใใซ Redirect ใๆฐธไน
็ใชใใฎ
(ในใใผใฟใน 301) ใงใใใใจใ็ฅใใใพใใ
<code>Redirect permanent</code> ใจใพใฃใใๅใใงใใ</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="RedirectTemp" id="RedirectTemp">RedirectTemp</a> <a name="redirecttemp" id="redirecttemp">ใใฃใฌใฏใใฃใ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ:</a></th><td>ใฏใฉใคใขใณใใ้ใ URL ใๅๅพใใใใใซๅค้จใธใฎไธๆ็ใช
ใชใใคใฌใฏใใ้ใ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆงๆ:</a></th><td><code>RedirectTemp <var>URL-path</var> <var>URL</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใณใณใใญในใ:</a></th><td>ใตใผใ่จญๅฎใใกใคใซ, ใใผใใฃใซใในใ, ใใฃใฌใฏใใช, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">ไธๆธใ:</a></th><td>FileInfo</td></tr>
<tr><th><a href="directive-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใขใธใฅใผใซ:</a></th><td>mod_alias</td></tr>
</table>
<p>ใใฎใใฃใฌใฏใใฃใใฏใฏใฉใคใขใณใใซ Redirect
ใไธๆ็ใชใใฎใงใใ (ในใใผใฟใน 302) ใใจใ็ฅใใใพใใ
<code>Redirect temp</code> ใจใพใฃใใๅใใงใใ</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ScriptAlias" id="ScriptAlias">ScriptAlias</a> <a name="scriptalias" id="scriptalias">ใใฃใฌใฏใใฃใ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ:</a></th><td>URL ใใใกใคใซใทในใใ ใฎไฝ็ฝฎใธใใใใใใใใๅ
ใ
CGI ในใฏใชใใใซๆๅฎ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆงๆ:</a></th><td><code>ScriptAlias <var>URL-path</var>
<var>file-path</var>|<var>directory-path</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใณใณใใญในใ:</a></th><td>ใตใผใ่จญๅฎใใกใคใซ, ใใผใใฃใซใในใ</td></tr>
<tr><th><a href="directive-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใขใธใฅใผใซ:</a></th><td>mod_alias</td></tr>
</table>
<p><code class="directive">ScriptAlias</code> ใใฃใฌใฏใใฃใใฏใๅฏพ่ฑกใใฃใฌใฏใใชใซ
<code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code> ใฎ cgi-script
ใใณใใฉใงๅฆ็ใใใ CGI
ในใฏใชใใใใใใใจใ็คบใไปฅๅคใฏ
<code class="directive"><a href="#alias">Alias</a></code>
ใใฃใฌใฏใใฃใใจๅใๆฏใ่ใใใใพใใ
URL ใฎ (% ใๅพฉๅทใใใ) ใในใ <var>URL-path</var> ใงๅงใพใใใฎใฏ
ใญใผใซใซใฎใใกใคใซใทในใใ ใฎ
ใใซใในใงใใไบ็ช็ฎใฎๅผๆฐใซใใใใใใพใใ</p>
<div class="example"><h3>ไพ</h3><p><code>
ScriptAlias /cgi-bin/ /web/cgi-bin/
</code></p></div>
<p><code>http://myserver/cgi-bin/foo</code>
ใธใฎใชใฏใจในใใซๅฏพใใฆใตใผใใฏในใฏใชใใ
<code>/web/cgi-bin/foo</code> ใๅฎ่กใใพใใ</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ScriptAliasMatch" id="ScriptAliasMatch">ScriptAliasMatch</a> <a name="scriptaliasmatch" id="scriptaliasmatch">ใใฃใฌใฏใใฃใ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">่ชฌๆ:</a></th><td>URL ใๆญฃ่ฆ่กจ็พใไฝฟใฃใฆใใกใคใซใทในใใ ใฎไฝ็ฝฎใธใใใใใใใใๅ
ใ
CGI ในใฏใชใใใซๆๅฎ</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ๆงๆ:</a></th><td><code>ScriptAliasMatch <var>regex</var>
<var>file-path</var>|<var>directory-path</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">ใณใณใใญในใ:</a></th><td>ใตใผใ่จญๅฎใใกใคใซ, ใใผใใฃใซใในใ</td></tr>
<tr><th><a href="directive-dict.html#Status">ในใใผใฟใน:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">ใขใธใฅใผใซ:</a></th><td>mod_alias</td></tr>
</table>
<p>ใใฎใใฃใฌใฏใใฃใใฏ <code class="directive"><a href="#scriptalias">ScriptAlias</a></code>
ใจใปใจใใฉๅใใงใใใ็ฐกๅใชๅ
้ ญใใใฎใใใใ่กใชใใฎใงใฏใชใใ
<a class="glossarylink" href="../glossary.html#regex" title="็จ่ช้ใๅ็
ง">ๆญฃ่ฆ่กจ็พ</a>ใๅฉ็จใใพใใใใใงๆๅฎใใใๆญฃ่ฆ่กจ็พใจ URL-path
ใๅใใใฉใใใ่ชฟในใๅใๅ ดๅใฏๆฌๅผงใงๆฌใใใใใใใ
ไธใใใใๆๅญๅใง็ฝฎใๆใใใใใใใกใคใซๅใจใใฆไฝฟ็จใใพใใ
ใใจใใฐใๆจๆบใฎ <code>/cgi-bin</code>
ใไฝฟ็จใใใใใซใใใใใซใฏใไปฅไธใฎใใใชใใฎใไฝฟใใพใ:
</p>
<div class="example"><p><code>
ScriptAliasMatch ^/cgi-bin(.*) /usr/local/apache/cgi-bin$1
</code></p></div>
</div>
</div>
<div class="bottomlang">
<p><span>็ฟป่จณๆธใฟ่จ่ช: </span><a href="../en/mod/mod_alias.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/mod/mod_alias.html" title="Japanese"> ja </a> |
<a href="../ko/mod/mod_alias.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
<a href="../tr/mod/mod_alias.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">ใณใกใณใ</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 again 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 Freenode, or sent to our <a href="http://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.2/mod/mod_alias.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 2015 The Apache Software Foundation.<br />ใใฎๆๆธใฏ <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>
๐ DarkStealth โ WP Plugin Edition
Directory: /var/www/manual/mod