Commit 0fc7f975 authored by Yoshiki Hayashi's avatar Yoshiki Hayashi
Browse files

New Japanese translation. Forward port from 1.3.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95393 13f79535-47bb-0310-9956-ffa450edef68
parent 9a509c6a
Loading
Loading
Loading
Loading

docs/manual/cgi_path.html

deleted100644 → 0
+0 −98
Changes for docs/manual/cgi_path.html: 0 added lines, 98 removed lines.
Original line number Diff line number Diff line
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org" />

    <title>PATH_INFO Changes in the CGI Environment</title>
  </head>
  <!-- Background white, links blue (unvisited), navy (visited), red (active) -->

  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
  vlink="#000080" alink="#FF0000">
    <!--#include virtual="header.html" -->

    <h1 align="CENTER">PATH_INFO Changes in the CGI
    Environment</h1>
    <hr />

    <h2><a id="over" name="over">Overview</a></h2>

    <p>As implemented in Apache 1.1.1 and earlier versions, the
    method Apache used to create PATH_INFO in the CGI environment
    was counterintuitive, and could result in crashes in certain
    cases. In Apache 1.2 and beyond, this behavior has changed.
    Although this results in some compatibility problems with
    certain legacy CGI applications, the Apache 1.2 behavior is
    still compatible with the CGI/1.1 specification, and CGI
    scripts can be easily modified (<a href="#compat">see
    below</a>).</p>

    <h2><a id="prob" name="prob">The Problem</a></h2>

    <p>Apache 1.1.1 and earlier implemented the PATH_INFO and
    SCRIPT_NAME environment variables by looking at the filename,
    not the URL. While this resulted in the correct values in many
    cases, when the filesystem path was overloaded to contain path
    information, it could result in errant behavior. For example,
    if the following appeared in a config file:</p>
<pre>
     Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph
</pre>

    <p>In this case, <code>user.cgi</code> is the CGI script, the
    "/ralph" is information to be passed onto the CGI. If this
    configuration was in place, and a request came for
    "<code>/cgi-ralph/script/</code>", the code would set PATH_INFO
    to "<code>/ralph/script</code>", and SCRIPT_NAME to
    "<code>/cgi-</code>". Obviously, the latter is incorrect. In
    certain cases, this could even cause the server to crash.</p>

    <h2><a id="solution" name="solution">The Solution</a></h2>

    <p>Apache 1.2 and later now determine SCRIPT_NAME and PATH_INFO
    by looking directly at the URL, and determining how much of the
    URL is client-modifiable, and setting PATH_INFO to it. To use
    the above example, PATH_INFO would be set to
    "<code>/script</code>", and SCRIPT_NAME to
    "<code>/cgi-ralph</code>". This makes sense and results in no
    server behavior problems. It also permits the script to be
    guaranteed that
    "<code>http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO</code>"
    will always be an accessible URL that points to the current
    script, something which was not necessarily true with previous
    versions of Apache.</p>

    <p>However, the "<code>/ralph</code>" information from the
    <code>Alias</code> directive is lost. This is unfortunate, but
    we feel that using the filesystem to pass along this sort of
    information is not a recommended method, and a script making
    use of it "deserves" not to work. Apache 1.2b3 and later,
    however, do provide <a href="#compat">a workaround.</a></p>

    <h2><a id="compat" name="compat">Compatibility with Previous
    Servers</a></h2>

    <p>It may be necessary for a script that was designed for
    earlier versions of Apache or other servers to need the
    information that the old PATH_INFO variable provided. For this
    purpose, Apache 1.2 (1.2b3 and later) sets an additional
    variable, FILEPATH_INFO. This environment variable contains the
    value that PATH_INFO would have had with Apache 1.1.1.</p>

    <p>A script that wishes to work with both Apache 1.2 and
    earlier versions can simply test for the existence of
    FILEPATH_INFO, and use it if available. Otherwise, it can use
    PATH_INFO. For example, in Perl, one might use:</p>
<pre>
    $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'};
</pre>

    <p>By doing this, a script can work with all servers supporting
    the CGI/1.1 specification, including all versions of
    Apache.</p>
    <!--#include virtual="footer.html" -->
  </body>
</html>
+98 −0
Changes for docs/manual/cgi_path.html.ja.jis: 98 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0" encoding="iso-2022-jp"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>

    <title>CGI $B4D6-$N(B PATH_INFO $B$NJQ99(B</title>
  <!-- English revision: 1.8 -->
  </head>
  <!-- Background white, links blue (unvisited), navy (visited), red (active) -->

  <body bgcolor="#ffffff" text="#000000" link="#0000ff"
  vlink="#000080" alink="#ff0000">
    <!--#include virtual="header.html" -->

    <h1 align="center">CGI $B4D6-$N(B PATH_INFO $B$NJQ99(B</h1>
    <hr />


    <h2><a id="over" name="over">$B35MW(B</a></h2>

    <p>Apache 1.1.1 $B$*$h$S$=$l0JA0$N%P!<%8%g%s$G<BAu$5$l$F$$$?(B
    CGI $B4D6-$G(B PATH_INFO $B$r:n@.$9$kJ}K!$OD>4QE*$G$J$/!"(B
    $B>l9g$K$h$C$F$O%/%i%C%7%e$9$k$3$H$b$"$j$^$7$?!#(B
    Apache 1.2 $B5Z$S$=$l0J9_$K$*$$$F!"$3$NF0:n$,JQ99$5$l$^$7$?!#(B
    $B$3$N$3$H$K$h$jFCDj$N8E$$(B CGI $B%"%W%j%1!<%7%g%s$K$*$$$F$$$/$D$+(B
    $B8_49@-$NLdBj$,@8$8$k$3$H$,$"$j$^$9$,!"$=$l$G$b(B Apache 1.2 $B$NF0:n$O(B
    CGI/1.1 $B;EMM$H8_49$,$"$j!"(BCGI $B%9%/%j%W%H$OMF0W$K=$@5$G$-$^$9(B(<a
    href="#compat">$B0J2<;2>H(B</a>)$B!#(B</p>

    <h2><a id="prob" name="prob">$BLdBj(B</a></h2>

    <p>Apache 1.1.1 $B$*$h$S$=$l0JA0$G$O!"(BURL $B$G$O$J$/%U%!%$%kL>$r;2>H$7$F(B
    PATH_INFO $B$H(B SCRIPT_NAME $B4D6-JQ?t$r@_Dj$7$F$$$^$7$?!#(B
    $BB?$/$N>l9g$O$3$l$,@5$7$$7k2L$rJV$7$^$9$,!"%Q%9>pJs$r4^$`$h$&$K(B
    filesystem $B%Q%9$,%*!<%P!<%m!<%I$5$l$?>l9g$O!"(B
    $B8m$C$?7k2L$rJV$9>l9g$,$"$j$^$7$?!#(B
    $B$?$H$($P!"@_Dj%U%!%$%k$K0J2<$,$"$k>l9g(B</p>
<pre>
     Alias /cgi-ralph /usr/local/httpd/cgi-bin/user.cgi/ralph
</pre>

    <p>$B$3$N>l9g!"(B<code>user.cgi</code> $B$O(B CGI $B%9%/%j%W%H$G$"$j!"(B
    &quot;/ralph&quot; $B$O!"(BCGI $B$KEO$5$l$k>pJs$G$9!#$b$7>e$N@_Dj$,$J$5$l$F$$$F!"(B
    &quot;<code>/cgi-ralph/script/</code>&quot; $B$X$N%j%/%(%9%H$,Mh$l$P!"(B
    PATH_INFO $B$K$O(B &quot;<code>/ralph/script/</code>&quot; $B$,!"(B
    SCRIPT_NAME $B$K$O(B &quot;<code>/cgi-</code>&quot; $B$,@_Dj$5$l$^$9!#(B
    $BL@$i$+$K!"8e<T$O4V0c$C$F$$$^$9!#FCDj$N>l9g$K$O!"$3$l$K$h$j(B
    $B%5!<%P$,%/%i%C%7%e$9$k$3$H$5$($"$j$^$7$?!#(B</p>

    <h2><a id="solution" name="solution">$B2r7h(B</a></h2>

    <p>Apache 1.2 $B0J9_$G$O(B SCRIPT_NAME $B$H(B PATH_INFO $B$N7hDj$K$O(B URL
    $B$rD>@\;2>H$7$F!"(BURL
    $B$N$I$l$@$1$NItJ,$,%/%i%$%"%s%H$,JQ992DG=$J$N$+$r3NDj$5$;$?>e$G(B
    PATH_INFO $B$r@_Dj$9$k$h$&$K$J$j$^$7$?!#>e$NNc$G$O!"(BPATH_INFO $B$K$O(B
    &quot;<code>/script</code>&quot; $B$,!"(BSCRIPT_NAME $B$K$O(B
    &quot;<code>/cgi-ralph</code>&quot; $B$,@_Dj$5$l$^$9!#(B
    $B$3$l$O@5$7$/!"$5$i$K!"%5!<%P$NF0:n$KLdBj$r5/$3$9$3$H$b$"$j$^$;$s!#$^$?!"(B
    &quot;<code>http://$SERVER_NAME:$SERVER_PORT$SCRIPT_NAME$PATH_INFO</code>&quot;
    $B$,!">o$K:G?7$N%9%/%j%W%H$r;X$9!"%"%/%;%92DG=$J(B URL $B$G$"$k$3$H$r(B
    $BJ]>Z$7$^$9!#$3$l$O!"0JA0$N%P!<%8%g%s$N(B Apache
    $B$G$OI,$:$7$b$=$&$H$O8B$i$J$+$C$?$3$H$G$9!#(B
    </p>

    <p>$B$7$+$7(B <code>Alias</code> $B%G%#%l%/%F%#%V$+$i$N(B
    &quot;<code>/ralph</code>&quot; $B>pJs$O<:$o$l$^$9!#(B
    $B$3$l$O;DG0$G$9$,!"(Bfilesystem $B$rDL$7$F$3$N<oN`$N>pJs$r(B
    $BEO$9$N$OA&$a$i$l$?J}K!$G$O$J$/!"(B
    $B$^$?$=$l$r;H$C$?%9%/%j%W%H$OF0:n$7$J$/$F$bEvA3$@$H9M$($^$9!#(B
    $B$?$@$7!"(BApache 1.2b3 $B0J9_$G$O(B<a
    href="#compat">$BBeBX<jCJ(B</a>$B$rMQ0U$7$F$$$^$9!#(B</p>

    <h2><a id="compat" name="compat">$B0JA0$N%5!<%P$H$N8_49@-(B</a></h2>

    <p>$B0JA0$N%P!<%8%g%s$N(B Apache $B$dB>$N%5!<%P8~$1$K@_7W$5$l$?(B
    $B%9%/%j%W%H$K$O8E$$(B PATH_INFO $BJQ?t$K$h$jDs6!$5$l$k>pJs$,(B
    $BI,MW$G$"$k$+$b$7$l$^$;$s!#(B
    $B$3$NL\E*$N$?$a$K!"(B
    Apache 1.2 (1.2b3 $B0J9_(B) $B$G$ODI2C$NJQ?t!"(BFILEPATH_INFO
    $B$r@_Dj$7$^$9!#$3$N4D6-JQ?t$K$O!"(BApache 1.1.1 $B$G(B
    PATH_INFO $B$G$"$C$?$G$"$m$&CM$,@_Dj$5$l$^$9!#(B</p>

    <p>Apache 1.2 $B$*$h$S$=$l0JA0$N%P!<%8%g%s$NN>J}$GF0:n$5$;$?$$%9%/%j%W%H$O!"(B
    FILEPATH_INFO $B$NB8:_$rC1$KD4$Y$F!"$=$l$,$"$l$P(B
    $B;H$&!"$H$$$&$3$H$,$G$-$^$9!#$=$&$G$J$1$l$P!"(BPATH_INFO
    $B$r;H$&$3$H$,$G$-$^$9!#$?$H$($P!"(BPerl $B$G$O<!$N$b$N$r;H$&$3$H$,$G$-$^$9(B</p>
<pre>
    $path_info = $ENV{'FILEPATH_INFO'} || $ENV{'PATH_INFO'};
</pre>

    <p>$B$3$l$K$h$j!"%9%/%j%W%H$O$9$Y$F$N%P!<%8%g%s$N(B Apache $B$r4^$`!"(B
    CGI/1.1 $B$r%5%]!<%H$9$k$9$Y$F$N%5!<%P$GF0:n$9$k$3$H$,$G$-$^$9!#(B
    </p>
    <!--#include virtual="footer.html" -->
  </body>
</html>

docs/manual/custom-error.html

deleted100644 → 0
+0 −182
Changes for docs/manual/custom-error.html: 0 added lines, 182 removed lines.
Original line number Diff line number Diff line
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org" />

    <title>Custom error responses</title>
  </head>
  <!-- Background white, links blue (unvisited), navy (visited), red (active) -->

  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
  vlink="#000080" alink="#FF0000">
    <!--#include virtual="header.html" -->

    <h1 align="CENTER">Custom error responses</h1>

    <dl>
      <dt>Purpose</dt>

      <dd>
        Additional functionality. Allows webmasters to configure
        the response of Apache to some error or problem. 

        <p>Customizable responses can be defined to be activated in
        the event of a server detected error or problem.</p>

        <p>e.g. if a script crashes and produces a "500 Server
        Error" response, then this response can be replaced with
        either some friendlier text or by a redirection to another
        URL (local or external).</p>
      </dd>

      <dt>Old behavior</dt>

      <dd>NCSA httpd 1.3 would return some boring old error/problem
      message which would often be meaningless to the user, and
      would provide no means of logging the symptoms which caused
      it.<br />
      </dd>

      <dt>New behavior</dt>

      <dd>
        The server can be asked to; 

        <ol>
          <li>Display some other text, instead of the NCSA hard
          coded messages, or</li>

          <li>redirect to a local URL, or</li>

          <li>redirect to an external URL.</li>
        </ol>

        <p>Redirecting to another URL can be useful, but only if
        some information can be passed which can then be used to
        explain and/or log the error/problem more clearly.</p>

        <p>To achieve this, Apache will define new CGI-like
        environment variables, <em>e.g.</em></p>

        <blockquote>
          <code>REDIRECT_HTTP_ACCEPT=*/*, image/gif,
          image/x-xbitmap, image/jpeg<br />
           REDIRECT_HTTP_USER_AGENT=Mozilla/1.1b2 (X11; I; HP-UX
          A.09.05 9000/712)<br />
           REDIRECT_PATH=.:/bin:/usr/local/bin:/etc<br />
           REDIRECT_QUERY_STRING=<br />
           REDIRECT_REMOTE_ADDR=121.345.78.123<br />
           REDIRECT_REMOTE_HOST=ooh.ahhh.com<br />
           REDIRECT_SERVER_NAME=crash.bang.edu<br />
           REDIRECT_SERVER_PORT=80<br />
           REDIRECT_SERVER_SOFTWARE=Apache/0.8.15<br />
           REDIRECT_URL=/cgi-bin/buggy.pl<br />
          </code>
        </blockquote>

        <p>note the <code>REDIRECT_</code> prefix.</p>

        <p>At least <code>REDIRECT_URL</code> and
        <code>REDIRECT_QUERY_STRING</code> will be passed to the
        new URL (assuming it's a cgi-script or a cgi-include). The
        other variables will exist only if they existed prior to
        the error/problem. <strong>None</strong> of these will be
        set if your ErrorDocument is an <em>external</em> redirect
        (<em>i.e.</em>, anything starting with a scheme name like
        <code>http:</code>, even if it refers to the same host as
        the server).</p>
      </dd>

      <dt>Configuration</dt>

      <dd>
        Use of "ErrorDocument" is enabled for .htaccess files when
        the <a href="mod/core.html#allowoverride">"FileInfo"
        override</a> is allowed. 

        <p>Here are some examples...</p>

        <blockquote>
          <code>ErrorDocument 500 /cgi-bin/crash-recover<br />
           ErrorDocument 500 "Sorry, our script crashed. Oh
          dear<br />
           ErrorDocument 500 http://xxx/<br />
           ErrorDocument 404 /Lame_excuses/not_found.html<br />
           ErrorDocument 401
          /Subscription/how_to_subscribe.html</code>
        </blockquote>

        <p>The syntax is,</p>

        <p><code><a
        href="mod/core.html#errordocument">ErrorDocument</a></code>
        &lt;3-digit-code&gt; action</p>

        <p>where the action can be,</p>

        <ol>
          <li>Text to be displayed. Prefix the text with a quote
          ("). Whatever follows the quote is displayed. <em>Note:
          the (") prefix isn't displayed.</em></li>

          <li>An external URL to redirect to.</li>

          <li>A local URL to redirect to.</li>
        </ol>
      </dd>
    </dl>
    <hr />

    <h2>Custom error responses and redirects</h2>

    <dl>
      <dt>Purpose</dt>

      <dd>Apache's behavior to redirected URLs has been modified so
      that additional environment variables are available to a
      script/server-include.</dd>

      <dt>Old behavior</dt>

      <dd>Standard CGI vars were made available to a script which
      has been redirected to. No indication of where the
      redirection came from was provided.</dd>

      <dt>New behavior</dt>

      <dd>A new batch of environment variables will be initialized
      for use by a script which has been redirected to. Each new
      variable will have the prefix <code>REDIRECT_</code>.
      <code>REDIRECT_</code> environment variables are created from
      the CGI environment variables which existed prior to the
      redirect, they are renamed with a <code>REDIRECT_</code>
      prefix, <em>i.e.</em>, <code>HTTP_USER_AGENT</code> becomes
      <code>REDIRECT_HTTP_USER_AGENT</code>. In addition to these
      new variables, Apache will define <code>REDIRECT_URL</code>
      and <code>REDIRECT_STATUS</code> to help the script trace its
      origin. Both the original URL and the URL being redirected to
      can be logged in the access log.</dd>
    </dl>

    <p>If the ErrorDocument specifies a local redirect to a CGI
    script, the script should include a "<samp>Status:</samp>"
    header field in its output in order to ensure the propagation
    all the way back to the client of the error condition that
    caused it to be invoked. For instance, a Perl ErrorDocument
    script might include the following:</p>
<pre>
      :
    print  "Content-type: text/html\n";
    printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"};
      :
</pre>

    <p>If the script is dedicated to handling a particular error
    condition, such as <samp>404&nbsp;Not&nbsp;Found</samp>, it can
    use the specific code and error text instead.</p>
    <!--#include virtual="footer.html" -->
  </body>
</html>
+183 −0
Changes for docs/manual/custom-error.html.ja.jis: 183 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0" encoding="iso-2022-jp"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
  <head>

    <title>$B%+%9%?%`%(%i!<%l%9%]%s%9(B</title>

  </head>
  <!-- English revision: 1.15 -->
  <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
  <body bgcolor="#ffffff" text="#000000" link="#0000ff"
  vlink="#000080" alink="#ff0000">
    <!--#include virtual="header.html" -->

    <h1 align="center">$B%+%9%?%`%(%i!<%l%9%]%s%9(B</h1>

    <dl>
      <dt>$BL\E*(B</dt>

      <dd>
        $BDI2C5!G=$NDs6!!#%&%'%V%^%9%?!<$,2?$i$+$N%(%i!<$dLdBj$KBP$9$k(B
        Apache $B$NH?1~$r@_Dj$G$-$k$h$&$K$7$^$9!#(B

        <p>$B%5!<%P$,%(%i!<$dLdBj$rH/8+$7$?>l9g$NH?1~$r!"(B
        $B%+%9%?%^%$%:$7$FDj5A$9$k$3$H$,$G$-$^$9!#(B</p>

        <p>$BNc$($P!"%9%/%j%W%H$N<B9T$,<:GT$7$F(B "500 Server Error"
        $B$rH/@8$5$;$?$H$7$^$9!#$3$N>l9g$NH?1~$r!"$h$j9%$^$7$$%F%-%9%H$d!"JL$N(B
        URL ($BFbIt5Z$S30It(B) $B$X$N%j%@%$%l%/%7%g%s$KCV$-49$($k$3$H$,$G$-$^$9!#(B
        </p>
      </dd>

      <dt>$B8E$$F0:n(B</dt>

      <dd>NCSA httpd 1.3 $B$O!"8E$/$FB`6~$J%(%i!<(B/$BLdBj%a%C%;!<%8$r(B
      $BJV$7$F$$$^$7$?!#$=$l$O$7$P$7$P%f!<%6$K$OL50UL#$G$"$j!"(B
      $B$^$?$=$l$rH/@8$5$;$?860x$r5-O?$9$kJ}K!$bDs6!$7$F$$$^$;$s$G$7$?!#(B
      <br />
      </dd>

      <dt>$B?7$7$$F0:n(B</dt>

      <dd>


        <ol>
          <li>NCSA $B$N%O!<%I%3!<%I$5$l$?%a%C%;!<%8$NBe$o$j$K(B
          $BB>$N%F%-%9%H$rI=<((B</li>

          <li>$B%m!<%+%k$N(B URL $B$K%j%@%$%l%/%H(B</li>

          <li>$B30It$N(B URL $B$K%j%@%$%l%/%H(B</li>
        </ol>
        $B$9$k$h$&$K%5!<%P$r@_Dj$G$-$^$9!#(B
        <p>$BJL$N(B URL $B$K%j%@%$%l%/%H$9$k$3$H$OLr$KN)$A$^$9$,!"(B
        $B$=$l$O@bL@$r$7$?$j!"$h$jL@3N$K8m$j(B/$BLdBj$r5-O?$7$?$j$9$k$?$a$K(B
        $B2?$+>pJs$rEA$($i$l$k$H$-$K8B$j$^$9!#(B</p>

        <p>$B$3$l$r<B8=$9$k$?$a$K!"(B Apache $B$O?7$7$/(B CGI $B$N$h$&$J4D6-JQ?t$rDj5A$7$^$9!#(B
        <em>$BNc$($P(B</em>$B0J2<$N$h$&$J$b$N$,$"$j$^$9!#(B</p>

        <blockquote>
          <code>REDIRECT_HTTP_ACCEPT=*/*, image/gif,
          image/x-xbitmap, image/jpeg<br />
           REDIRECT_HTTP_USER_AGENT=Mozilla/1.1b2 (X11; I; HP-UX
          A.09.05 9000/712)<br />
           REDIRECT_PATH=.:/bin:/usr/local/bin:/etc<br />
           REDIRECT_QUERY_STRING=<br />
           REDIRECT_REMOTE_ADDR=121.345.78.123<br />
           REDIRECT_REMOTE_HOST=ooh.ahhh.com<br />
           REDIRECT_SERVER_NAME=crash.bang.edu<br />
           REDIRECT_SERVER_PORT=80<br />
           REDIRECT_SERVER_SOFTWARE=Apache/0.8.15<br />
           REDIRECT_URL=/cgi-bin/buggy.pl<br />
          </code>
        </blockquote>

        <p>$BF,$KIU$/(B <code>REDIRECT_</code> $B$KCmL\$7$F$/$@$5$$!#(B</p>

        <p>$B>/$J$/$H$b(B <code>REDIRECT_URL</code> $B$H(B
        <code>REDIRECT_QUERY_STRING</code> $B$O?7$7$$(B URL (CGI $B%9%/%j%W%H$+(B
        CGI $B%$%s%/%k!<%I$G$"$k$H2>Dj$5$l$^$9(B) $B$KEO$5$l$^$9!#(B
        $BB>$NJQ?t$O!"%(%i!<$dLdBj$,5/$-$kA0$KB8:_$7$?>l9g$K$@$1B8:_$7$^$9!#(B
        $B$b$7$"$J$?$N@_Dj$7$?(B ErrorDocument $B$,(B <em>$B30It(B</em>$B%j%@%$%l%/%H(B
        (<em>$B$9$J$o$A(B</em>$B!"(B<code>http:</code> 
        $B$N$h$&$JBN7OL>$+$i;O$^$k$9$Y$F$N$b$N!#$?$H$(F1$8%[%9%H$r;X$7$F$$$F$b(B)
        $B$J$i$P!"$3$l$i$O(B<strong>$B$^$C$?$/(B</strong>$B@_Dj$5$l$^$;$s!#(B
        </p>
      </dd>

      <dt>$B@_Dj(B</dt>

      <dd>
        <a href="mod/core.html#allowoverride">"FileInfo" $B%*!<%P!<%i%$%I(B</a>
        $B$,5v2D$5$l$F$$$l$P!"(B.htaccess $B%U%!%$%k$G(B "ErrorDocument"
        $B$r;HMQ$9$k$3$H$,$G$-$^$9!#(B

        <p>$B$3$3$K!"$$$/$D$+$NNc$r5s$2$^$9!#(B</p>

        <blockquote>
          <code>ErrorDocument 500 /cgi-bin/crash-recover<br />
           ErrorDocument 500 "Sorry, our script crashed. Oh
          dear<br />
           ErrorDocument 500 http://xxx/<br />
           ErrorDocument 404 /Lame_excuses/not_found.html<br />
           ErrorDocument 401
          /Subscription/how_to_subscribe.html</code>
        </blockquote>

        <p>$B9=J8(B</p>

        <p><code><a
        href="mod/core.html#errordocument">ErrorDocument</a></code>
        &lt;3 $B7e%3!<%I(B&gt; $BF0:n(B</p>

        <p>$BF0:n$O!"(B</p>

        <ol>
          <li>$BI=<($5$l$k$Y$-%F%-%9%H!#%F%-%9%H$K$O0zMQId(B (") $B$r$D$1$^$9!#(B
          $B0zMQId$N8e$KB3$/$b$N$,2?$G$bI=<($5$l$^$9!#(B
          <em>$BCm0U(B : (") $B$OI=<($5$l$^$;$s(B</em></li>

          <li>$B%j%@%$%l%/%H@h$N30It(B URL </li>

          <li>$B%j%@%$%l%/%H@h$N%m!<%+%k(B URL </li>
        </ol>
      </dd>
    </dl>
    <hr />

    <h2>$B%+%9%?%`%(%i!<%l%9%]%s%9$H%j%@%$%l%/%H(B</h2>

    <dl>
      <dt>$BL\E*(B </dt>

      <dd>$B%9%/%j%W%H(B/SSI $B$KDI2C$N4D6-JQ?t$,MxMQ2DG=$K$J$k$h$&$K!"(B
      $B%j%@%$%l%/%H$5$l$?(B URL $B$KBP$9$k(B Apache $B$NF0:n$,JQ99$5$l$^$7$?!#(B
      </dd>

      <dt>$B8E$$F0:n(B</dt>

      <dd>$B%j%@%$%l%/%H$5$l$?%9%/%j%W%H$OI8=`$N(B CGI
      $B4D6-JQ?t$rMxMQ2DG=$G$7$?!#$7$+$7!"$I$3$+$i%j%@%$%l%/%H(B
      $B$5$l$?$+$N>pJs$ODs6!$5$l$F$$$^$;$s$G$7$?!#(B</dd>

      <dt>$B?7$7$$F0:n(B </dt>

      <dd>$B%j%@%$%l%/%H$5$l$?@h$N%9%/%j%W%H$,;HMQ2DG=$J$h$&$K!"(B
      $B?7$7$$$?$/$5$s$N4D6-JQ?t$,=i4|2=$5$l$^$9!#?7$7$$JQ?t$O!"$=$l$>$l(B
      <code>REDIRECT_</code> $B$G;O$^$j$^$9!#(B
      <code>REDIRECT_</code> $B$G;O$^$k4D6-JQ?t$O%j%@%$%l%/%H$5$l$kA0$KB8:_$7$F$$$?(B
      CGI $B4D6-JQ?t$NF,$K(B <code>REDIRECT_</code> $B$rIU$1$F:n@.$5$l$^$9!#(B
      <em>$B$9$J$o$A(B</em>$B!"(B<code>HTTP_USER_AGENT</code> $B$O(B 
      <code>REDIRECT_HTTP_USER_AGENT</code> $B$K$J$j$^$9!#(B
      $B$3$l$i$N?7$7$$JQ?t$K2C$($F!"(BApache $B$O!"(B
      $B%9%/%j%W%H$,%j%@%$%l%/%H85$N%H%l!<%9$r=u$1$k$?$a$K(B
      <code>REDIRECT_URL</code> $B$H(B <code>REDIRECT_STATUS</code>
      $B$rDj5A$7$^$9!#%"%/%;%9%m%0$K$O85$N(B URL $B$H%j%@%$%l%/%H$5$l$?(B URL
      $B$NN>J}$,5-O?$5$l$^$9!#(B</dd>
    </dl>

    <p>ErrorDocument $B$,(B CGI $B%9%/%j%W%H$X$N%m!<%+%k%j%@%$%l%/%H$r(B
    $B;XDj$7$F$$$k>l9g$O!"$=$l$r5/F0$9$k$3$H$K$J$C$?%(%i!<$N>uBV$r(B
    $B%/%i%$%"%s%H$^$G3N<B$KEA$($k$?$a$K(B <samp>"Status:" </samp>
    $B%X%C%@$r4^$`$Y$-$G$9!#Nc$($P!"(BErrorDocument $BMQ$N(B Perl
    $B%9%/%j%W%H$O0J2<$N$h$&$J$b$N$r4^$`$+$b$7$l$^$;$s!#(B
    </p>
<pre>
      :
    print  "Content-type: text/html\n";
    printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"};
      :
</pre>

    <p>$B%9%/%j%W%H$,(B <samp>404 Not Found</samp> $B$N$h$&$J(B
    $BFCDj$N%(%i!<%3%s%G%#%7%g%s$r07$&$?$a$@$1$K;H$o$l$k>l9g$O!"(B
    $BBe$o$j$KFCDj$N%3!<%I$H%(%i!<%F%-%9%H$r;HMQ$9$k$3$H$,$G$-$^$9!#(B
    </p>
    <!--#include virtual="footer.html" -->
  </body>
</html>