urlmapping.xml.ja revision dcfd71cf8c1fd0e1f2563197a68a07e14a9e3387
<?xml version="1.0" encoding="iso-2022-jp" ?>
<!-- English Revision: 1.12 -->
<!--
Copyright 2002-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
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="urlmapping.xml.meta">
<title>URL $B$+$i%U%!%$%k%7%9%F%`>e$N0LCV$X$N%^%C%W(B</title>
<summary>
<p>$B$3$NJ8=q$O(B Apache $B$,%j%/%(%9%H$N(B URL $B$+$iAw?.$9$k%U%!%$%k$N(B
$B%U%!%$%k%7%9%F%`>e$N0LCV$r7hDj$9$kJ}K!$r@bL@$7$^$9!#(B</p>
</summary>
<section id="related"><title>$B4XO"$9$k%b%8%e!<%k$H%G%#%l%/%F%#%V(B</title>
<related>
<modulelist>
<module>mod_alias</module>
<module>mod_proxy</module>
<module>mod_rewrite</module>
<module>mod_userdir</module>
<module>mod_speling</module>
<module>mod_vhost_alias</module>
</modulelist>
<directivelist>
<directive module="mod_alias">Alias</directive>
<directive module="mod_alias">AliasMatch</directive>
<directive module="mod_speling">CheckSpelling</directive>
<directive module="core">DocumentRoot</directive>
<directive module="core">ErrorDocument</directive>
<directive module="core">Options</directive>
<directive module="mod_proxy">ProxyPass</directive>
<directive module="mod_proxy">ProxyPassReverse</directive>
<directive module="mod_alias">Redirect</directive>
<directive module="mod_alias">RedirectMatch</directive>
<directive module="mod_rewrite">RewriteCond</directive>
<directive module="mod_rewrite">RewriteMatch</directive>
<directive module="mod_alias">ScriptAlias</directive>
<directive module="mod_alias">ScriptAliasMatch</directive>
<directive module="mod_userdir">UserDir</directive>
</directivelist>
</related>
</section>
<section id="documentroot"><title>DocumentRoot</title>
<p>$B%j%/%(%9%H$KBP$7$F$I$N%U%!%$%k$rAw?.$9$k$+$r7hDj$9$k$H$-$N(B
Apache $B$N%G%U%)%k%H$NF0:n$O!"%j%/%(%9%H$N(B URL-Path (URL $B$N%[%9%HL>$H(B
$B%]!<%HHV9f$N8e$KB3$/ItJ,(B) $B$r<h$j=P$7$F@_Dj%U%!%$%k$G;XDj$5$l$F$$$k(B
<directive module="core">DocumentRoot</directive>
$B$N:G8e$KDI2C$9$k!"$H$$$&$b$N$G$9!#$G$9$+$i!"(B
<directive module="core">DocumentRoot</directive>
$B$N2<$N%G%#%l%/%H%j$d%U%!%$%k$,%&%'%V$+$i8+$($k4pK\$N%I%-%e%a%s%H$NLZ9=B$$r(B
$B$J$7$^$9!#(B</p>
<p>Apache $B$K$O%5!<%P$,J#?t$N%[%9%H$X$N%j%/%(%9%H$r<u$1<h$k(B
<a href="vhosts/">$B%P!<%A%c%k%[%9%H(B</a> $B$N5!G=$b$"$j$^$9!#(B
$B$3$N>l9g!"$=$l$>$l$N%P!<%A%c%k%[%9%H$KBP$7$F0c$&(B
<directive module="core">DocumentRoot</directive>
$B$r;XDj$9$k$3$H$,$G$-$^$9!#$^$?!"(B<module>mod_vhost_alias</module>
$B%b%8%e!<%k$K$h$jDs6!$5$l$k%G%#%l%/%F%#%V$r;H$C$F!"(B
$BAw?.$9$k$?$a$N%3%s%F%s%D$N>l=j$r%j%/%(%9%H$5$l$?(B IP
$B%"%I%l%9$d%[%9%HL>$+$iF0E*$K7h$a$k$3$H$b$G$-$^$9!#(B</p>
</section>
<section id="outside"><title>DocumentRoot $B30$N%U%!%$%k(B</title>
<p>$B%U%!%$%k%7%9%F%`>e$N!"(B
$B87L)$K$O(B <directive module="core">DocumentRoot</directive>
$B$N2<$K$O$J$$ItJ,$X$N%&%'%V%"%/%;%9$r5v2D$9$kI,MW$,$"$k(B
$B>l9g$,$h$/$"$j$^$9!#(BApache $B$O$3$N$?$a$KJ#?t$NJ}K!$rMQ0U$7$F$$$^$9!#(B
Unix $B%7%9%F%`$G$O!"%U%!%$%k%7%9%F%`$NB>$NItJ,$r%7%s%\%j%C%/%j%s%/$r(B
$B;H$C$F(B <directive module="core">DocumentRoot</directive>
$B$N2<$K;}$C$F$/$k$3$H$,$G$-$^$9!#%;%-%e%j%F%#>e$NM}M3$K$h$j!"(B
Apache $B$O3:Ev$9$k%G%#%l%/%H%j$N(B
<directive module="core">Options</directive> $B$N@_Dj$K(B
<code>FollowSymLinks</code> $B$+(B <code>SymLinksIfOwnerMatch</code> $B$,(B
$B$"$k>l9g$K$N$_%7%s%\%j%C%/%j%s%/$r$?$I$j$^$9!#(B</p>
<p>$BBe$o$j$NJ}K!$H$7$F!"(B<directive module="mod_alias">Alias</directive>
$B%G%#%l%/%F%#%V$r;H$C$F%U%!%$%k%7%9%F%`$NG$0U$NItJ,$r%&%'%V$N6u4V$K(B
$B%^%C%W$G$-$^$9!#$?$H$($P!"(B</p>
<p>$B$H$$$&@_Dj$N$H$-$O!"(BURL
<directive module="mod_alias">ScriptAlias</directive> $B$b!"(B
$BBP>]$H$J$C$F$$$k%Q%9$,(B CGI $B%9%/%j%W%H$H$7$F07$o$l$k$H$$$&DI2C$N(B
$B8z2L0J30$OF1$8$h$&$KF0:n$7$^$9!#(B</p>
<p>$B$b$C$H=@Fp$J@_Dj$,I,MW$J>u67$G$O!"(B
<directive module="mod_alias">AliasMatch</directive> $B%G%#%l%/%F%#%V$d(B
<directive module="mod_alias">ScriptAliasMatch</directive> $B%G%#%l%/%F%#%V(B
$B$?$H$($P!"(B</p>
<example>ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+)
$B%^%C%W$7!"$3$N%^%C%W$N7k2L$H$7$F$N%U%!%$%k$r(B CGI $B%9%/%j%W%H$H$7$F(B
$B07$$$^$9!#(B</p>
</section>
<section id="user"><title>$B%f!<%6%G%#%l%/%H%j(B</title>
<p>$BEAE}E*$K(B Unix $B%7%9%F%`$G$O%f!<%6(B <em>user</em> $B$N%[!<%`%G%#%l%/%H%j$r(B
<code>~user/</code> $B$H$7$F;2>H$G$-$^$9!#(B<module>mod_userdir</module>
$B%b%8%e!<%k$O$3$N35G0$r%&%'%V$K3HD%$7$F!"(B
$B$=$l$>$l$N%f!<%6$N%[!<%`%G%#%l%/%H%j$N%U%!%$%k$r(B
$B0J2<$N$h$&$J(B URL $B$r;H$C$F%"%/%;%9$G$-$k$h$&$K$7$^$9!#(B</p>
<example>http://www.example.com/~user/file.html</example>
<p>$B%;%-%e%j%F%#$N4QE@$+$i!"%&%'%V$+$i%f!<%6$N%[!<%`%G%#%l%/%H%j$X(B
$BD>@\%"%/%;%9$G$-$k$h$&$K$9$k$3$H$OE,@Z$G$O$"$j$^$;$s!#$G$9$+$i!"(B
<directive module="mod_userdir">UserDir</directive> $B%G%#%l%/%F%#%V$K$O(B
$B%f!<%6$N%[!<%`%G%#%l%/%H%j$N2<$N!"%&%'%V%U%!%$%k$N(B
$BCV$+$l$F$$$k%G%#%l%/%H%j$r;XDj$7$^$9!#%G%U%)%k%H$N@_Dj$N(B
<code>Userdir public_html</code> $B$r;H$&$H!">e$N(B URL $B$O(B
<p><directive module="mod_userdir">Userdir</directive> $B$K$O!"(B
$B%7%9%F%`$G$b;H$&$3$H$N$G$-$kB>$N7A<0$b$"$j$^$9!#(B</p>
<p>$BCf$K$O%7%s%\%k(B "~" (<code>%7e</code> $B$N$h$&$KId9f2=$5$l$k$3$H$,B?$$(B)
$B$r3J9%$,0-$$$H;W$C$F!"%f!<%6$N%G%#%l%/%H%j$rI=$9$?$a$KJL$NJ8;zNs$N(B
$B;HMQ$r9%$`?M$,$$$^$9!#(Bmod_userdir $B$O$3$N5!G=$r%5%]!<%H$7$F$$$^$;$s!#(B
$B$7$+$7!"%f!<%6$N%[!<%`%G%#%l%/%H%j$,5,B'E*$J9=@.$N$H$-$O!"(B
<directive module="mod_alias">AliasMatch</directive> $B$r;H$C$FK>$_$N(B
$B8z2L$rC#@.$9$k$3$H$,$G$-$^$9!#$?$H$($P!"(B
$B0J2<$N$h$&$K(B <code>AliasMatch</code> $B%G%#%l%/%F%#%V$r;H$$$^$9(B:</p>
<example>AliasMatch ^/upages/([a-zA-Z0-9]+)/?(.*)
</section>
<section id="redirect"><title>URL $B%j%@%$%l%/%7%g%s(B</title>
<p>$B>e$N@a$G@bL@$7$?@_DjMQ$N%G%#%l%/%F%#%V$O(B Apache $B$K(B
$B%U%!%$%k%7%9%F%`$NFCDj$N>l=j$+$i%3%s%F%s%D$r<h$C$F$-$F(B
$B%/%i%$%"%s%H$KAw$jJV$9$h$&$K$7$^$9!#$H$-$K$O!"$=$NBe$o$j$K(B
$B%/%i%$%"%s%H$K%j%/%(%9%H$5$l$?%3%s%F%s%D$OJL$N(B URL $B$K$"$k$3$H$r(B
$BCN$i$;$F!"%/%i%$%"%s%H$,?7$7$$(B URL $B$X?7$7$$%j%/%(%9%H$r9T$J$&$h$&$K(B
$B$9$kJ}$,K>$^$7$$$3$H$,$"$j$^$9!#$3$l$O(B<em>$B%j%@%$%l%/%7%g%s(B</em>$B$H(B
$B8F$P$l$F$$$F!"(B<directive module="mod_alias">Redirect</directive>
$B%G%#%l%/%F%#%V$K$h$j<BAu$5$l$F$$$^$9!#$?$H$($P!"(B
<directive module="core">DocumentRoot</directive> $B$N2<$N%G%#%l%/%H%j(B
<code>/foo/</code> $B$,?7$7$$%G%#%l%/%H%j(B <code>/bar/</code> $B$K0\F0$7$?$H$-$O!"(B
$B0J2<$N$h$&$K$7$F%/%i%$%"%s%H$,?7$7$$>l=j$N%3%s%F%s%D$r%j%/%(%9%H$9$k$h$&$K(B
$B;X<($9$k$3$H$,$G$-$^$9(B:</p>
<example>Redirect permanent /foo/
http://www.example.com/bar/</example>
<p>$B$3$l$O!"(B<code>/foo/</code> $B$G;O$^$k$9$Y$F$N(B URL-Path $B$r!"(B
<code>/foo/</code> $B$KCV49$5$l$?$b$N$K%j%@%$%l%/%H$7$^$9!#(B
$B%5!<%P$O<+J,<+?H$N%5!<%P$@$1$G$J$/!"$I$N%5!<%P$K$G$b%/%i%$%"%s%H$r(B
$B%j%@%$%l%/%H$9$k$3$H$,$G$-$^$9!#(B</p>
<p>Apache $B$O$h$jJ#;($J=q$-49$($NLdBj$N$?$a$K!"(B
<directive module="mod_alias">RedirectMatch</directive> $B%G%#%l%/%F%#%V$r(B
$BDs6!$7$F$$$^$9!#$?$H$($P!"%5%$%H$N%[!<%`%Z!<%8$r0c$&%5%$%H$K%j%@%$%l%/%H(B
$B$9$k$1$l$I!"B>$N%j%/%(%9%H$O$=$N$^$^07$&!"$H$$$&$H$-$O0J2<$N@_Dj$r(B
$B;H$$$^$9(B:</p>
<example>RedirectMatch permanent ^/$
http://www.example.com/startpage.html</example>
<p>$B$"$k$$$O!"0l;~E*$K%5%$%H$N$9$Y$F$N%Z!<%8$rB>$N%5%$%H$NFCDj$N(B
$B%Z!<%8$X%j%@%$%l%/%H$9$k$H$-$O!"0J2<$r;H$$$^$9(B:</p>
<example>RedirectMatch temp .*
</section>
<section id="proxy"><title>$B%j%P!<%9%W%m%-%7(B</title>
<p>Apache $B$O1s3VCO$K$"$k%I%-%e%a%s%H$r%m!<%+%k$N%5!<%P$N(B URL $B6u4V$K(B
$B;}$C$F$/$k$3$H$b$G$-$^$9!#$3$N<jK!$O(B<em>$B%j%P!<%9%W%m%-%7(B</em>$B$H8F$P$l$F$$$^$9!#(B
$B%&%'%V%5!<%P$,1s3VCO$N%I%-%e%a%s%H$r<hF@$7$F%/%i%$%"%s%H$KAw$jJV$9$N$,(B
$B%W%m%-%7%5!<%P$NF0:n$N$h$&$K8+$($k$+$i$G$9!#%/%i%$%"%s%H$K$O%I%-%e%a%s%H$,(B
$B%j%P!<%9%W%m%-%7%5!<%P$+$iAw$i$l$F$-$F$$$k$h$&$K8+$($kE@$,DL>o$N(B
$B%W%m%-%7$H$O0[$J$j$^$9!#(B</p>
<p>$B<!$NNc$G$O!"%/%i%$%"%s%H$,(B <code>/foo/</code> $B%G%#%l%/%H%j$N2<$K$"$k(B
<code>/bar/</code> $B%G%#%l%/%H%j$+$i<hF@$7$F!"$5$b%m!<%+%k%5!<%P$+$i$N(B
$B%I%-%e%a%s%H$N$h$&$K$7$F%/%i%$%"%s%H$KJV$7$^$9!#(B</p>
<example>
ProxyPass /foo/ http://internal.example.com/bar/<br />
ProxyPassReverse /foo/ http://internal.example.com/bar/
</example>
<p><directive module="mod_proxy">ProxyPass</directive> $B%G%#%l%/%F%#%V$O(B
$B%5!<%P$,E,@Z$J%I%-%e%a%s%H$r<hF@$9$k$h$&$K@_Dj$7!"(B
<directive module="mod_proxy">ProxyPassReverse</directive> $B%G%#%l%/%F%#%V$O(B
$BE,@Z$J%G%#%l%/%H%j$r;X$9$h$&$K=q$-49$($^$9!#$?$@$7!"%I%-%e%a%s%H$NCf$N(B
$B%j%s%/$O=q$-49$($i$l$J$$!"$H$$$&$3$H$OCN$C$F$*$$$F$/$@$5$$!#(B
$BD>@\%j%/%(%9%H$rAw$k!"$H$$$&$3$H$K$J$j$^$9!#(B</p>
</section>
<section id="rewrite"><title>$B%j%i%$%H%(%s%8%s(B</title>
$B$,Ds6!$9$k%j%i%$%H%(%s%8%s$,Lr$KN)$D$G$7$g$&!#(B
$B$3$N%b%8%e!<%k$K$h$jDs6!$5$l$k%G%#%l%/%F%#%V$O(B
$B%V%i%&%6$N<oN`!"%j%/%(%9%H85$N(B IP $B%"%I%l%9$J$I$N%j%/%(%9%H$NFCD'$r(B
$B;H$C$FAw$jJV$9%3%s%F%s%D$N>l=j$r7h$a$^$9!#$5$i$K!"(B<module>mod_rewrite</module>
$B$O30It$N%G!<%?%Y!<%9%U%!%$%k$d%W%m%0%i%`$r;H$C$F%j%/%(%9%H$N07$$J}$r(B
$B7h$a$k$3$H$b$G$-$^$9!#%j%i%$%H%(%s%8%s$O>e$G5s$2$i$l$F$$$k;0$D$N%^%C%T%s%0(B
$B$9$Y$F$r9T$J$&$3$H$,$G$-$^$9(B: $BFbIt$N%j%@%$%l%/%H(B ($B%(%$%j%"%9(B)$B!"(B
$B30It$N%j%@%$%l%/%H!"%W%m%-%7$G$9!#(Bmod_rewrite $B$r;H$&B?$/$N<BMQE*$JNc$O(B
$B$G@bL@$5$l$F$$$^$9!#(B</p>
</section>
<section id="notfound"><title>File Not Found</title>
<p>$BI,$:!"%j%/%(%9%H$5$l$?(B URL $B$KBP1~$9$k%U%!%$%k$,%U%!%$%k%7%9%F%`$K(B
$BL5$$$H$$$&>l9g$,H/@8$7$^$9!#$3$l$,5/$3$k$N$K$O$$$/$D$+$NM}M3$,$"$j$^$9!#(B
$B>l9g$K$h$C$F$O!"%I%-%e%a%s%H$rJL$N>l=j$K0\F0$7$?7k2L$G$"$k$3$H$,$"$j$^$9!#(B
$B$3$N>l9g$O!"%/%i%$%"%s%H$K%j%=!<%9$N?7$7$$0LCV$rCN$i$;$k$?$a$K(B
<a href="#redirect">URL $B%j%@%$%l%/%7%g%s(B</a>$B$r;H$&$N$,:GA1$NJ}K!$G$9!#(B
$B$=$&$9$k$3$H$K$h$C$F!"%j%=!<%9$O?7$7$$0LCV$K0\F0$7$F$$$k$1$l$I$b!"(B
$B8E$$%V%C%/%^!<%/$d%j%s%/$,F0:n$7B3$1$k$h$&$K$9$k$3$H$,$G$-$^$9!#(B</p>
<p>"File Not Found" $B%(%i!<$N$b$&0l$D$N$h$/$"$kM}M3$O!"(B
$B%V%i%&%6$X$ND>@\F~NO$d(B HTML $B%j%s%/$+$i$N6vH/E*$J(B URL $B$NF~NO4V0c$$$G$9!#(B
Apache $B$O$3$NLdBj$r2~A1$9$k$?$a$K!"(B<module>mod_speling</module>
$B%b%8%e!<%k(B ($B0U?^E*$JDV$j4V0c$$(B)
($BLuCm(B: $B@5$7$/$O(B spelling) $B$rDs6!$7$F$$$^$9!#$3$N%b%8%e!<%k$,(B
$B;HMQ$5$l$F$$$k$H$-$O!"(B"File Not Found" $B%(%i!<$r2#<h$j$7$F!"(B
$B;w$?%U%!%$%kL>$N%j%=!<%9$rC5$7$^$9!#$b$70l$D$@$18+$D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