1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00

New Japanese translation.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yoshiki Hayashi
2001-04-19 03:08:04 +00:00
parent 807c6d0bae
commit 9cb03e576b
6 changed files with 395 additions and 400 deletions

View File

@@ -1,248 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Configuration Files</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">Configuration Files</H1>
<ul>
<li><a href="#main">Main Configuration Files</a></li>
<li><a href="#syntax">Syntax of the Configuration Files</a></li>
<li><a href="#modules">Modules</a></li>
<li><a href="#scope">Scope of Directives</a></li>
<li><a href="#htaccess">.htaccess Files</a></li>
<li><a href="#logs">Log Files</a></li>
</ul>
<hr>
<H2><a name="main">Main Configuration Files</a></H2>
<table border="1"><tr><td valign="top">
<strong>Related Modules</strong><br><br>
<a href="mod/mod_mime.html">mod_mime</a><br>
</td>
<td valign="top">
<strong>Related Directives</strong><br><br>
<A HREF="mod/core.html#ifdefine">&lt;IfDefine&gt;</A><br>
<a href="mod/core.html#include">Include</a><br>
<A HREF="mod/mod_mime.html#typesconfig">TypesConfig</A><br>
</td></tr></table>
<P>Apache is configured by placing <A HREF="mod/directives.html"
>directives</A> in plain text configuration files. The main
configuration file is usually called <CODE>httpd.conf</CODE>. The
location of this file is set at compile-time, but may be overridden
with the <CODE>-f</CODE> command line flag. In addition, other
configuration files may be added using the <CODE><A
HREF="mod/core.html#include">Include</A></CODE> directive. Any
directive may be placed in any of these configuration files. Changes
to the main configuration files are only recognized by Apache when it
is started or restarted.</p>
<P>New with Apache 1.3.13 is a feature where if any configuration
file is actually a directory, Apache will enter that directory
and parse any files (and subdirectories) found there as configuration
files. One possible use for this would be to add VirtualHosts
by creating small configuration files for each host, and placing
them in such a configuration directory. Thus, you can add or
remove VirtualHosts without editing any files at all, simply
adding or deleting them. This makes automating such processes
much easier.
<P>
The server also reads a file containing mime document types; the
filename is set by the <A HREF="mod/mod_mime.html#typesconfig"
>TypesConfig</A> directive, and is <CODE>mime.types</CODE> by default.
<hr>
<H2><a name="syntax">Syntax of the Configuration Files</a></H2>
<P>Apache configuration files contain one directive per line. The
back-slash "\" may be used as the last character on a line to indicate
that the directive continues onto the next line. There must be no
other characters or white space between the back-slash and the end of
the line.
<P>Directives in the configuration files are case-insensitive, but
arguments to directives are often case sensitive. Lines which begin
with the hash character "#" are considered comments, and are ignored.
Comments may <STRONG>not</STRONG> be included on a line after a
configuration directive. Blank lines and white space occurring before
a directive are ignored, so you may indent directives for clarity.
<P>You can check your configuration files for syntax errors without
starting the server by using <CODE>apachectl configtest</CODE>
or the <CODE>-t</CODE> command line option.
<hr>
<H2><a name="modules">Modules</a></H2>
<table border="1"><tr><td valign="top">
<strong>Related Modules</strong><br><br>
<a href="mod/mod_so.html">mod_so</a><br>
</td>
<td valign="top">
<strong>Related Directives</strong><br><br>
<A HREF="mod/core.html#addmodule">AddModule</A><br>
<A HREF="mod/core.html#clearmodulelist">ClearModuleList</A><br>
<A HREF="mod/core.html#ifmodule">&lt;IfModule&gt;</A><br>
<a href="mod/mod_so.html#loadmodule">LoadModule</a><br>
</td></tr></table>
<P>Apache is a modular server. This implies that only the most basic
functionality is included in the core server. Extended features are
available through <A HREF="mod/index-bytype.html">modules</A> which
can be loaded into Apache. By default, a <A
HREF="mod/module-dict.html#Status">base</A> set of modules is
included in the server at compile-time. If the server is compiled to
use <A HREF="dso.html">dynamically loaded</A> modules, then modules
can be compiled separately and added at any time using the <A
HREF="mod/mod_so.html#loadmodule">LoadModule</A> directive.
Otherwise, Apache must be recompiled to add or remove modules.
Configuration directives may be included conditional on a presence of
a particular module by enclosing them in an <A
HREF="mod/core.html#ifmodule">&lt;IfModule&gt;</A> block.
<P>To see which modules are currently compiled into the server,
you can use the <CODE>-l</CODE> command line option.
<hr>
<H2><a name="scope">Scope of Directives</a></H2>
<table border="1"><tr><td valign="top">
<strong>Related Directives</strong><br><br>
<A HREF="mod/core.html#directory">&lt;Directory&gt;</A><br>
<A HREF="mod/core.html#directorymatch">&lt;DirectoryMatch&gt;</A><br>
<A HREF="mod/core.html#files">&lt;Files&gt;</A><br>
<A HREF="mod/core.html#filesmatch">&lt;FilesMatch&gt;</A><br>
<A HREF="mod/core.html#location">&lt;Location&gt;</A><br>
<A HREF="mod/core.html#locationmatch">&lt;LocationMatch&gt;</A><br>
<a href="mod/core.html#virtualhost">&lt;VirtualHost&gt;</a><br>
</td></tr></table>
<P>Directives placed in the main configuration files apply to the entire
server. If you wish to change the configuration for only a part of
the server, you can scope your directives by placing them in
<CODE><A HREF="mod/core.html#directory">&lt;Directory&gt;</A>,
<A HREF="mod/core.html#directorymatch">&lt;DirectoryMatch&gt;</A>,
<A HREF="mod/core.html#files">&lt;Files&gt;</A>,
<A HREF="mod/core.html#filesmatch">&lt;FilesMatch&gt;</A>,
<A HREF="mod/core.html#location">&lt;Location&gt;</A>,
</CODE> and <CODE>
<A HREF="mod/core.html#locationmatch">&lt;LocationMatch&gt;</A>
</CODE>
sections. These sections limit the application of the directives
which they enclose to particular filesystem locations or URLs. They
can also be nested, allowing for very fine grained configuration.
<P>Apache has the capability to serve many different websites
simultaneously. This is called <A HREF="vhosts/">Virtual Hosting</A>.
Directives can also be scoped by placing them inside
<CODE><A HREF="mod/core.html#virtualhost">&lt;VirtualHost&gt;</A></CODE>
sections, so that they will only apply to requests for a particular
website.
<P>Although most directives can be placed in any of these sections,
some directives do not make sense in some contexts. For example,
directives controlling process creation can only be placed in the main
server context. To find which directives can be placed in which
sections, check the <A
HREF="mod/directive-dict.html#Context">Context</A> of the directive.
For further information, we provide details on <A
HREF="sections.html">How Directory, Location and Files sections
work</A>.
<hr>
<H2><a name="htaccess">.htaccess Files</a></H2>
<table border="1"><tr><td valign="top">
<strong>Related Directives</strong><br><br>
<A HREF="mod/core.html#accessfilename">AccessFileName</A><br>
<A HREF="mod/core.html#allowoverride">AllowOverride</A><br>
</td></tr></table>
<P>Apache allows for decentralized management of configuration via
special files placed inside the web tree. The special files are
usually called <CODE>.htaccess</CODE>, but any name can be specified
in the <A HREF="mod/core.html#accessfilename"><CODE
>AccessFileName</CODE></A> directive. Directives placed in
<CODE>.htaccess</CODE> files apply to the directory where you place
the file, and all sub-directories. The <CODE>.htaccess</CODE> files
follow the same syntax as the main configuration files. Since
<CODE>.htaccess</CODE> files are read on every request, changes made
in these files take immediate effect.
<P>To find which directives can be placed in <CODE>.htaccess</CODE>
files, check the <A HREF="mod/directive-dict.html#Context">Context</A>
of the directive. The server administrator further controls what
directives may be placed in <CODE>.htaccess</CODE> files by
configuring the <A
HREF="mod/core.html#allowoverride"><CODE>AllowOverride</CODE></A>
directive in the main configuration files.
<hr>
<H2><a name="logs">Log files</a></H2>
<!-- XXX: This section should be moved to its own file -->
<H3>security warning</H3>
Anyone who can write to the directory where Apache is writing a
log file can almost certainly gain access to the uid that the server is
started as, which is normally root. Do <EM>NOT</EM> give people write
access to the directory the logs are stored in without being aware of
the consequences; see the <A HREF="misc/security_tips.html">security tips</A>
document for details.
<H3>pid file</H3>
<P>On startup, Apache saves the process id of the parent httpd process to
the file <CODE>logs/httpd.pid</CODE>. This filename can be changed
with the <A HREF="mod/core.html#pidfile">PidFile</A> directive. The
process-id is for use by the administrator in restarting and
terminating the daemon: on Unix, a HUP or USR1 signal causes the
daemon to re-read its configuration files and a TERM signal causes it
to die gracefully; on Windows, use the -k command line option instead.
For more information see the <A HREF="stopping.html">Stopping and
Restarting</A> page.
<P>
If the process dies (or is killed) abnormally, then it will be necessary to
kill the children httpd processes.
<H3>Error log</H3>
<P>The server will log error messages to a log file, by default
<CODE>logs/error_log</CODE> on Unix or <CODE>logs/error.log</CODE> on
Windows and OS/2. The filename can be set using the <A
HREF="mod/core.html#errorlog">ErrorLog</A> directive; different error
logs can be set for different <A
HREF="mod/core.html#virtualhost">virtual hosts</A>.
<H3>Transfer log</H3>
<P>The server will typically log each request to a transfer file, by
default <CODE>logs/access_log</CODE> on Unix or
<CODE>logs/access.log</CODE> on Windows and OS/2. The filename can be
set using a <A HREF="mod/mod_log_config.html#customlog">CustomLog</A>
directive; different transfer logs can be set for different <A
HREF="mod/core.html#virtualhost">virtual hosts</A>.
<!--#include virtual="footer.html" -->
</BODY>
</HTML>

View File

@@ -0,0 +1 @@
<!--#include virtual="configuring.html.en" -->

View File

@@ -0,0 +1,247 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>$B@_Dj%U%!%$%k(B</title>
</head>
<!-- English revision: 1.8 -->
<!-- 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%U%!%$%k$N@_Dj(B</h1>
<ul>
<li><a href="#main">$B%a%$%s$N@_Dj%U%!%$%k(B</a></li>
<li><a href="#syntax">$B@_Dj%U%!%$%k$N9=J8(B</a></li>
<li><a href="#modules">$B%b%8%e!<%k(B</a></li>
<li><a href="#scope">$B%G%#%l%/%F%#%V$NE,MQHO0O(B</a></li>
<li><a href="#htaccess">.htaccess $B%U%!%$%k(B</a></li>
<li><a href="#logs">$B%m%0%U%!%$%k(B</a></li>
</ul>
<hr>
<h2><a name="main">$B%a%$%s$N@_Dj%U%!%$%k(B</a></h2>
<table border="1"><tr><td valign="top">
<strong>$B4XO"%b%8%e!<%k(B</strong><br><br>
<a href="mod/mod_mime.html">mod_mime</a><br>
</td>
<td valign="top">
<strong>$B4XO"%G%#%l%/%F%#%V(B</strong><br><br>
<a href="mod/core.html#ifdefine">&lt;IfDefine&gt;</a><br>
<a href="mod/core.html#include">Include</a><br>
<a href="mod/mod_mime.html#typesconfig">TypesConfig</a><br>
</td></tr></table>
<p>Apache $B$O(B <a href="mod/directives.html">$B%G%#%l%/%F%#%V(B</a> $B$r(B
$B@_Dj%U%!%$%k$KJ?J8$G=q$/$3$H$K$h$j@_Dj$7$^$9!#%a%$%s$N(B
$B@_Dj%U%!%$%k$OIaDL$O(B <code>httpd.conf</code> $B$H$$$&L>A0$G$9!#(B
$B$3$N%U%!%$%k$N0LCV$O%3%s%Q%$%k;~$K@_Dj$5$l$^$9$,!"%3%^%s%I%i%$%s$N(B
<code>-f</code> $B%U%i%0$K$h$j>e=q$-$G$-$^$9!#$=$N>e!"B>$N@_Dj%U%!%$%k$,(B
<code><a href="mod/core.html#include">Include</a></code> $B%G%#%l%/%F%#%V(B
$B$K$h$C$FDI2C$5$l$F$$$k$+$b$7$l$^$;$s!#$I$N%G%#%l%/%F%#%V$b(B
$B$3$l$i$N@_Dj%U%!%$%k$N$I$l$K$G$bF~$l$i$l$^$9!#(BApache $B$O5/F0;~$+(B
$B:F5/F0;~$N$_%a%$%s@_Dj%U%!%$%k$NJQ99$rG'<1$7$^$9!#(B</p>
<p>Apache 1.3.13 $B$N?7$7$$5!G=$H$7$F!"@_Dj%U%!%$%k$,<B:]$O%G%#%l%/%H%j$G(B
$B$"$k$H$-$K$O$=$N%G%#%l%/%H%j$G8+$D$+$C$?$9$Y$F$N%U%!%$%k(B
($B$H%5%V%G%#%l%/%H%j(B) $B$r2r@O$9$k$H$$$&$b$N$,$"$j$^$9!#MxMQK!$H$7$F$O!"(B
$B%P!<%A%c%k%[%9%H$rDI2C$9$k$H$-$K!"$=$l$>$l$N%[%9%H$KBP$7$F>.$5$J@_Dj(B
$B%U%!%$%k$r:n$j!"@_Dj%G%#%l%/%H%j$KCV$/$H$$$&$b$N$,5s$2$i$l$^$9!#(B
$B$3$&$9$k$H!"C1$K%U%!%$%k$NDI2C!":o=|$r$9$k$3$H$K$h$jA4$/%U%!%$%k$r(B
$BJT=8$9$k$3$H$J$/%P!<%A%c%k%[%9%H$NDI2C!":o=|$,$G$-$^$9!#$3$l$O<+F02=$r(B
$B$:$C$H4JC1$K$7$^$9!#(B</p>
<p>
$B%5!<%P$O(B mime $B%I%-%e%a%s%H%?%$%W$r4^$s$G$$$k%U%!%$%k$bFI$_9~$_$^$9!#(B
$B%U%!%$%kL>$O(B <a href="mod/mod_mime.html#typesconfig"
>TypesConfig</a> $B$G@_Dj$5$l!"%G%U%)%k%H$G(B <code>mime.types</code>
$B$K$J$C$F$$$^$9!#(B</p>
<hr>
<h2><a name="syntax">$B@_Dj%U%!%$%k$N9=J8(B</a></h2>
<p>Apache $B@_Dj%U%!%$%k$O(B1$B9T$K(B1$B$D$N%G%#%l%/%F%#%V$+$i$J$j$^$9!#(B
$B%P%C%/%9%i%C%7%e(B "\" $B$O%G%#%l%/%F%#%V$,<!$N9T$K7QB3$7$F$$$k$3$H$r(B
$B<($9$?$a$K9T$N:G8e$NJ8;z$H$7$F;H$o$l$F$$$k$+$b$7$l$^$;$s!#(B
$B9T$N:G8e$H%P%C%/%9%i%C%7%e$N4V$KB>$NJ8;z$d6uGr$,$"$C$F$O$$$1$^$;$s!#(B</p>
<p>$B@_Dj%U%!%$%k$N%G%#%l%/%F%#%V$OBgJ8;z>.J8;z$r6hJL$7$^$;$s$,!"(B
$B0z?t$K$O$7$P$7$P6hJL$9$k$b$N$,$"$j$^$9!#%O%C%7%eJ8;z(B "#" $B$G;O$^$k9T$O(B
$B%3%a%s%H$H8+$J$5$l$FL5;k$5$l$^$9!#@_Dj%G%#%l%/%F%#%V$N8e$N9T$G$O(B
$B%3%a%s%H$,4^$^$l$F$$$F$O(B<strong>$B$$$1$^$;$s(B</strong>$B!#%G%#%l%/%F%#%V$N(B
$BA0$N6u9T$H6uGr$OL5;k$5$l$^$9$N$G!"$o$+$j$d$9$/$9$k$?$a$K%G%#%l%/%F%#%V$r(B
$B%$%s%G%s%H$9$k$3$H$,$G$-$^$9!#(B</p>
<p>$B@_Dj%U%!%$%k$N9=J8%(%i!<$O(B
<code>apachectl configtest</code> $B$+%3%^%s%I%i%$%s%*%W%7%g%s(B
<code>-t</code> $B$r;H$C$FD4$Y$i$l$^$9!#(B</p>
<hr>
<h2><a name="modules">$B%b%8%e!<%k(B</a></h2>
<table border="1"><tr><td valign="top">
<strong>$B4XO"%b%8%e!<%k(B</strong><br><br>
<a href="mod/mod_so.html">mod_so</a><br>
</td>
<td valign="top">
<strong>$B4XO"%G%#%l%/%F%#%V(B</strong><br><br>
<a href="mod/core.html#addmodule">AddModule</a><br>
<a href="mod/core.html#clearmodulelist">ClearModuleList</a><br>
<a href="mod/core.html#ifmodule">&lt;IfModule&gt;</a><br>
<a href="mod/mod_so.html#loadmodule">LoadModule</a><br>
</td></tr></table>
<p>Apache $B$O%b%8%e!<%k2=$5$l$?%5!<%P$G$9!#%3%"%5!<%P$K$O(B
$B0lHV4pK\E*$J5!G=$@$1$,4^$^$l$F$$$^$9!#3HD%5!G=$O(B Apache $B$K(B
$B%m!<%I$5$l$k(B<a href="mod/index-bytype.html">$B%b%8%e!<%k(B</a>$B$H$7$F(B
$BMxMQ2DG=$G$9!#%G%U%)%k%H$G$O%3%s%Q%$%k;~$K%b%8%e!<%k$N(B<a
href="mod/module-dict.html#Status">$B4pK\(B</a>$B%;%C%H$,(B
$B%5!<%P$K4^$^$l$^$9!#%5!<%P$,(B<a href="dso.html">$BF0E*%m!<%I(B</a>$B%b%8%e!<%k$r(B
$B;H$&$h$&$K%3%s%Q%$%k$5$l$F$$$k>l9g$O!"%b%8%e!<%k$rJL$K%3%s%Q%$%k$7$F!"(B
$B$$$D$G$b(B <a href="mod/mod_so.html#loadmodule">LoadModule</a>
$B%G%#%l%/%F%#%V$r;H$C$FDI2C$G$-$^$9!#$=$&$G$J$$>l9g$O!"%b%8%e!<%k$N(B
$BDI2C$d:o=|$r$9$k$?$a$K$O(B Apache $B$r:F%3%s%Q%$%k$9$kI,MW$,$"$j$^$9!#(B
$B@_Dj%G%#%l%/%F%#%V$O(B <a
href="mod/core.html#ifmodule">&lt;IfModule&gt;</a> $B%V%m%C%/$K(B
$BF~$l$k$3$H$GFCDj$N%b%8%e!<%k$,B8:_$9$k$H$-$@$1(B
$B@_Dj%U%!%$%k$K4^$^$l$k$h$&$K$9$k$3$H$,$G$-$^$9!#(B</p>
<p>$B%3%^%s%I%i%$%s%*%W%7%g%s(B <code>-l</code> $B$r;H$C$F(B
$B8=;~E@$G$I$N%b%8%e!<%k$,%5!<%P$K%3%s%Q%$%k$5$l$F$$$k$+$r(B
$BCN$k$3$H$,$G$-$^$9!#(B
<hr>
<h2><a name="scope">$B%G%#%l%/%F%#%V$NE,MQHO0O(B</a></h2>
<table border="1"><tr><td valign="top">
<strong>$B4XO"%G%#%l%/%F%#%V(B</strong><br><br>
<a href="mod/core.html#directory">&lt;Directory&gt;</a><br>
<a href="mod/core.html#directorymatch">&lt;DirectoryMatch&gt;</a><br>
<a href="mod/core.html#files">&lt;Files&gt;</a><br>
<a href="mod/core.html#filesmatch">&lt;FilesMatch&gt;</a><br>
<a href="mod/core.html#location">&lt;Location&gt;</a><br>
<a href="mod/core.html#locationmatch">&lt;LocationMatch&gt;</a><br>
<a href="mod/core.html#virtualhost">&lt;VirtualHost&gt;</a><br>
</td></tr></table>
<p>$B%a%$%s@_Dj%U%!%$%k$K$"$k%G%#%l%/%F%#%V$O%5!<%PA4BN$KE,MQ$5$l$^$9!#(B
$B%5!<%P$N0lItJ,$N@_Dj$@$1$rJQ99$7$?$$>l9g$O(B
<code><a href="mod/core.html#directory">&lt;Directory&gt;</a>,
<a href="mod/core.html#directorymatch">&lt;DirectoryMatch&gt;</a>,
<a href="mod/core.html#files">&lt;Files&gt;</a>,
<a href="mod/core.html#filesmatch">&lt;FilesMatch&gt;</a>,
<a href="mod/core.html#location">&lt;Location&gt;</a>,
<a href="mod/core.html#locationmatch">&lt;LocationMatch&gt;</a>
</code>
$B%;%/%7%g%s$NCf$KCV$/$3$H$GE,MQHO0O$r7h$a$i$l$^$9!#$3$l$i$N%;%/%7%g%s$O(B
$B$=$NCf$K$"$k%G%#%l%/%F%#%V$NE,MQHO0O$rFCDj$N%U%!%$%k%7%9%F%`$N0LCV$d(B
URL $B$K8BDj$7$^$9!#Hs>o$K:YN3EY$N@_Dj$r2DG=$K$9$k$?$a$K!"%;%/%7%g%s$r(B
$BF~$l;R$K$9$k$3$H$b$G$-$^$9!#(B</p>
<p>Apache $B$OF1;~$KB?$/$N0c$&%&%'%V%5%$%H$r07$&G=NO$,$"$j$^$9!#(B
$B$3$l$O(B <a href="vhosts/">$B%P!<%A%c%k%[%9%H(B</a> $B$H8F$P$l$F$$$^$9!#(B
$BFCDj$N%&%'%V%5%$%H$K$N$_E,MQ$5$l$k$h$&$K$9$k$?$a$K!"%G%#%l%/%F%#%V$O(B
<code><a href="mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code>
$B%;%/%7%g%s$NCf$KCV$/$3$H$G$bE,MQHO0O$rJQ$($k$3$H$,$G$-$^$9!#(B</p>
<p>$B$[$H$s$I$N%G%#%l%/%F%#%V$O$I$N%;%/%7%g%s$K$G$b=q$1$^$9$,!"(B
$BCf$K$O%3%s%F%-%9%H$K$h$C$F$O0UL#$r$J$5$J$$$b$N$b$"$j$^$9!#Nc$($P!"(B
$B%W%m%;%9$N:n@.$r@)8f$7$F$$$k%G%#%l%/%F%#%V$O%a%$%s%5!<%P$N%3%s%F%-%9%H$K(B
$B$N$_=q$/$3$H$,$G$-$^$9!#$I$N%G%#%l%/%F%#%V$r$I$N%;%/%7%g%s$K=q$/$3$H$,(B
$B$G$-$k$+$rCN$k$?$a$K$O%G%#%l%/%F%#%V$N(B
<a href="mod/directive-dict.html#Context">$B%3%s%F%-%9%H(B</a>$B$rD4$Y$F$/$@$5$$!#(B
$B>\$7$$>pJs$O!"(B<a
href="sections.html">Directory, Location, Files $B%;%/%7%g%s$NF0:nK!(B</a>
$B$K$"$j$^$9!#(B</p>
<hr>
<h2><a name="htaccess">.htaccess $B%U%!%$%k(B</a></h2>
<table border="1"><tr><td valign="top">
<strong>$B4XO"%G%#%l%/%F%#%V(B</strong><br><br>
<a href="mod/core.html#accessfilename">AccessFileName</a><br>
<a href="mod/core.html#allowoverride">AllowOverride</a><br>
</td></tr></table>
<p>Apache $B$G$O%&%'%V%D%j!<$NCf$KCV$+$l$?FCJL$J%U%!%$%k$r;H$C$F(B
$BHsCf1{=88"E*$J@_Dj4IM}$r$G$-$^$9!#$=$NFCJL$J%U%!%$%k$OIaDL$O(B
<code>.htaccess</code> $B$H$$$&L>A0$G!"(B
<a href="mod/core.html#accessfilename"><code
>AccessFileName</code></a> $B%G%#%l%/%F%#%V$G$I$s$JL>A0$G$b;XDj$G$-$^$9!#(B
<code>.htaccess</code> $B%U%!%$%k$K=q$+$l$?%G%#%l%/%F%#%V$O%U%!%$%k$r(B
$BCV$$$?%G%#%l%/%H%j$H$=$NA4$F$N%5%V%G%#%l%/%H%j$KE,MQ$5$l$^$9!#(B
<code>.htaccess</code> $B%U%!%$%k$O$9$Y$F$N%j%/%(%9%H$G(B
$BFI$_9~$^$l$k$?$a!"JQ99$O$9$0$KH?1G$5$l$^$9!#(B
<p>$B$I$N%G%#%l%/%F%#%V$,(B <code>.htaccess</code> $B%U%!%$%k$K=q$1$k$+$r(B
$BD4$Y$k$K$O!"%G%#%l%/%F%#%V$N(B
<a href="mod/directive-dict.html#Context">$B%3%s%F%-%9%H(B</a> $B$rD4$Y$F$/$@$5$$!#(B
$B%5!<%P4IM}<T$O$5$i$K%a%$%s@_Dj%U%!%$%k$N(B <a
href="mod/core.html#allowoverride"><code>AllowOverride</code></a>
$B$r@_Dj$9$k$3$H$G$I$N%G%#%l%/%F%#%V$r(B <code>.htaccess</code> $B%U%!%$%k$K(B
$B=q$1$k$h$&$K$9$k$+$r@)8f$9$k$3$H$,$G$-$^$9!#(B</p>
<hr>
<h2><a name="logs">$B%m%0%U%!%$%k(B</a></h2>
<!-- XXX: This section should be moved to its own file -->
<h3>$B%;%-%e%j%F%#$K4X$9$k7Y9p(B</h3>
<p>
Apache $B$,%m%0%U%!%$%k$r=q$$$F$$$k%G%#%l%/%H%j$K=q$-9~$a$k?M$OC/$G$b(B
$B$[$\3N<B$K%5!<%P$,5/F0$5$l$?(B uid $B$N%"%/%;%9$r<hF@$G$-$^$9!#(B
$B$=$7$F$=$l$OIaDL(B root $B$G$9!#$=$N7k2L$r$h$/$o$+$i$:$K%m%0$,J]4I$5$l$F$$$k(B
$B%G%#%l%/%H%j$K=q$-9~$_8"8B$rM?$($?$j(B<em>$B$7$J$$(B</em>$B$G$/$@$5$$!#>\:Y$O(B
<a href="misc/security_tips.html">$B%;%-%e%j%F%#>pJs(B</a>$B$r;2>H$7$F$/$@$5$$!#(B</p>
<h3>pid $B%U%!%$%k(B</h3>
<p>$B5/F0;~$K(B Apache $B$O?F(B httpd $B%W%m%;%9$N%W%m%;%9(B ID $B$r(B
<code>logs/httpd.pid</code> $B%U%!%$%k$KJ]B8$7$^$9!#$3$N%U%!%$%kL>$O(B
<a href="mod/core.html#pidfile">PidFile</a>
$B%G%#%l%/%F%#%V$GJQ99$9$k$3$H$,$G$-$^$9!#%W%m%;%9(B ID $B$O4IM}<T$,%G!<%b%s$r(B
$B:F5/F0$7$?$j=*N;$7$?$j$9$k$?$a$K;H$$$^$9!#(BUnix $B$G$O(B HUP $B$H(B USR1 $B%7%0%J%k$G(B
$B%G!<%b%s$,@_Dj%U%!%$%k$r:FFI$_9~$_$7$^$9!#(BTERM $B%7%0%J%k$O%G!<%b%s$r(B
$BM%2m$K=*N;$5$;$^$9!#(BWindows $B$G$O!"Be$o$j$K%3%^%s%I%i%$%s%*%W%7%g%s(B -k $B$r(B
$B;H$$$^$9!#(B
$B>\$7$$>pJs$O(B<a href="stopping.html">$B5/F0$H=*N;(B</a>$B$r;2>H$7$F$/$@$5$$!#(B</p>
<p>
$B%W%m%;%9$,0[>o=*N;$9$k(B ($B$b$7$/$O(B kill $B$5$l$k(B) $B$H!";R(B httpd $B%W%m%;%9$r(B
kill $B$9$kI,MW$,$"$j$^$9!#(B</p>
<h3>$B%(%i!<%m%0(B</h3>
<p>$B%5!<%P$O%(%i!<%a%C%;!<%8$r%m%0%U%!%$%k$K5-O?$7$^$9!#%G%U%)%k%H$O!"(BUnix
$B$G$O(B <code>logs/error_log</code> $B$G(B Windows $B$H(B OS/2 $B$G$O(B
<code>logs/error.log</code> $B$G$9!#%U%!%$%kL>$O(B <a
href="mod/core.html#errorlog">ErrorLog</a> $B%G%#%l%/%F%#%V$G@_Dj$G$-$^$9!#(B
$B0c$&(B<a
href="mod/core.html#virtualhost">$B%P!<%A%c%k%[%9%H(B</a>
$B$K0c$&%(%i!<%m%0$r@_Dj$9$k$3$H$,$G$-$^$9!#(B</p>
<h3>$BE>Aw%m%0(B</h3>
<p>$B%5!<%P$OIaDL$=$l$>$l$N%j%/%(%9%H$rE>Aw%U%!%$%k$K%m%0$r<h$j$^$9!#(B
$B%G%U%)%k%H$O(B Unix $B$G$O(B <code>logs/access_log</code> $B$G(B Windows $B$H(B
OS/2 $B$G$O(B <code>logs/access.log</code> $B$G$9!#%U%!%$%kL>$O(B
<a href="mod/mod_log_config.html#customlog">CustomLog</a>
$B%G%#%l%/%F%#%V$r$G@_Dj$G$-$^$9!#0c$&(B<a
href="mod/core.html#virtualhost">$B%P!<%A%c%k%[%9%H(B</a>$B$K(B
$B0c$&E>Aw%m%0$r@_Dj$9$k$3$H$,$G$-$^$9!#(B</p>
<!--#include virtual="footer.html" -->
</body>
</html>

View File

@@ -1,152 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Apache's Handler Use</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">Apache's Handler Use</H1>
<ul>
<li><a href="#definition">What is a Handler</a></li>
<li><a href="#examples">Examples</a></li>
<li><a href="#programmer">Programmer's Note</a></li>
</ul>
<hr>
<H2><a name="definition">What is a Handler</a></H2>
<table border="1">
<tr><td valign="top">
<strong>Related Modules</strong><br><br>
<a href="mod/mod_actions.html">mod_actions</a><br>
<A HREF="mod/mod_asis.html">mod_asis</A><br>
<A HREF="mod/mod_cgi.html">mod_cgi</A><br>
<A HREF="mod/mod_imap.html">mod_imap</A><br>
<A HREF="mod/mod_info.html">mod_info</A><br>
<a href="mod/mod_mime.html">mod_mime</a><br>
<A HREF="mod/mod_negotiation.html">mod_negotiation</A><br>
<A HREF="mod/mod_status.html">mod_status</A><br>
</td>
<td valign="top">
<strong>Related Directives</strong><br><br>
<a href="mod/mod_actions.html#action">Action</a><br>
<A HREF="mod/mod_mime.html#addhandler">AddHandler</A><br>
<a href="mod/mod_mime.html#removehandler">RemoveHandler</a><br>
<A HREF="mod/mod_mime.html#sethandler">SetHandler</A><br>
</td>
</tr></table>
<P>A "handler" is an internal Apache representation of the action to be
performed when a file is called. Generally, files have implicit
handlers, based on the file type. Normally, all files are simply
served by the server, but certain file types are "handled"
separately.</P>
<P>Apache 1.1 adds the ability to use handlers explicitly. Based on
either filename extensions or on location, handlers can be specified
without relation to file type. This is advantageous both because it is
a more elegant solution, and because it also allows for both a type
<STRONG>and</STRONG> a handler to be associated with a file. (See also
<A HREF="mod/mod_mime.html#multipleext">Files with Multiple
Extensions</A>.)</p>
<P>Handlers can either be built into the server or included in a module,
or they can be added with the <A
HREF="mod/mod_actions.html#action">Action</A> directive. The built-in
handlers in the standard distribution are as follows:</P>
<UL>
<LI><STRONG>default-handler</STRONG>:
Send the file using the <CODE>default_handler()</CODE>, which is the
handler used by default to handle static content.
(core)
<LI><STRONG>send-as-is</STRONG>:
Send file with HTTP headers as is.
(<A HREF="mod/mod_asis.html">mod_asis</A>)
<LI><STRONG>cgi-script</STRONG>:
Treat the file as a CGI script.
(<A HREF="mod/mod_cgi.html">mod_cgi</A>)
<LI><STRONG>imap-file</STRONG>:
Parse as an imagemap rule file.
(<A HREF="mod/mod_imap.html">mod_imap</A>)
<LI><STRONG>server-info</STRONG>:
Get the server's configuration information.
(<A HREF="mod/mod_info.html">mod_info</A>)
<LI><STRONG>server-status</STRONG>:
Get the server's status report.
(<A HREF="mod/mod_status.html">mod_status</A>)
<LI><STRONG>type-map</STRONG>:
Parse as a type map file for content negotiation.
(<A HREF="mod/mod_negotiation.html">mod_negotiation</A>)
</UL>
<hr>
<h2><a name="examples">Examples</a></h2>
<h3>Modifying static content using a CGI script</h3>
<p>The following directives will cause requests for files with the
<code>html</code> extension to trigger the launch of the
<code>footer.pl</code> CGI script.</p>
<pre>
Action add-footer /cgi-bin/footer.pl
AddHandler add-footer .html
</pre>
<p>Then the CGI script is responsible for sending the originally
requested document (pointed to by the <code>PATH_TRANSLATED</code>
environment variable) and making whatever modifications or additions
are desired.</p>
<h3>Files with HTTP headers</h3>
<p>The following directives will enable the <code>send-as-is</code>
handler, which is used for files which contain their own HTTP headers.
All files in the <code>/web/htdocs/asis/</code> directory will be
processed by the <code>send-as-is</code> handler, regardless of their
filename extensions.</p>
<pre>
&lt;Directory /web/htdocs/asis&gt;
SetHandler send-as-is
&lt;/Directory&gt;
</pre>
<hr>
<H2><a name="programmer">Programmer's Note</a></H2>
<P>In order to implement the handler features, an addition has been
made to the <A HREF="misc/API.html">Apache API</A> that you may wish to
make use of. Specifically, a new record has been added to the
<CODE>request_rec</CODE> structure:</P>
<PRE>
char *handler
</PRE>
<P>If you wish to have your module engage a handler, you need only to
set <CODE>r-&gt;handler</CODE> to the name of the handler at any time
prior to the <CODE>invoke_handler</CODE> stage of the
request. Handlers are implemented as they were before, albeit using
the handler name instead of a content type. While it is not
necessary, the naming convention for handlers is to use a
dash-separated word, with no slashes, so as to not invade the media
type name-space.</P>
<!--#include virtual="footer.html" -->
</BODY>
</HTML>

View File

@@ -0,0 +1 @@
<!--#include virtual="handler.html.en" -->

View File

@@ -0,0 +1,146 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Apache $B$N%O%s%I%i$N;HMQ(B</title>
</HEAD>
<!-- English revision: 1.22 -->
<!-- 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">Apache $B$N%O%s%I%i$N;HMQ(B</h1>
<ul>
<li><a href="#definition">$B%O%s%I%i$H$O(B</a></li>
<li><a href="#examples">$BNc(B</a></li>
<li><a href="#programmer">$B%W%m%0%i%^8~$1$N%a%b(B</a></li>
</ul>
<hr>
<h2><a name="definition">$B%O%s%I%i$H$O(B</a></h2>
<table border="1">
<tr><td valign="top">
<strong>$B4XO"%b%8%e!<%k(B</strong><br><br>
<a href="mod/mod_actions.html">mod_actions</a><br>
<a href="mod/mod_asis.html">mod_asis</a><br>
<a href="mod/mod_cgi.html">mod_cgi</a><br>
<a href="mod/mod_imap.html">mod_imap</a><br>
<a href="mod/mod_info.html">mod_info</a><br>
<a href="mod/mod_mime.html">mod_mime</a><br>
<a href="mod/mod_negotiation.html">mod_negotiation</a><br>
<a href="mod/mod_status.html">mod_status</a><br>
</td>
<td valign="top">
<strong>$B4XO"%G%#%l%/%F%#%V(B</strong><br><br>
<a href="mod/mod_actions.html#action">Action</a><br>
<a href="mod/mod_mime.html#addhandler">AddHandler</a><br>
<a href="mod/mod_mime.html#removehandler">RemoveHandler</a><br>
<a href="mod/mod_mime.html#sethandler">SetHandler</a><br>
</td>
</tr></table>
<p>$B!V%O%s%I%i!W$H$O!"%U%!%$%k$,8F$P$l$?$H$-$K<B9T$5$l$kF0:n$N(B Apache $B$K$*$1$k(B
$BFbItI=8=$G$9!#DL>o!"%U%!%$%k$O%U%!%$%k7?$K4p$E$$$?0EL[$N(B
$B%O%s%I%i$,$"$j$^$9!#IaDL$O$9$Y$F$N%U%!%$%k$OC1$K%5!<%P$K07$o$l$^$9$,!"(B
$B%U%!%$%k%?%$%W$NCf$K$OJL$K!V%O%s%I%k!W(B ($BLuCm(B: $B07$&(B) $B$5$l$k$b$N$b$"$j$^$9!#(B</p>
<p>Apache 1.1 $B$G$O!"%O%s%I%i$rL@<(E*$K;HMQ$9$k5!G=$,DI2C$5$l$^$7$?!#(B
$B%U%!%$%k$N3HD%;R$dCV$$$F$$$k>l=j$K4p$E$$$F!"%U%!%$%k7?$H4X78$J$/%O%s%I%i$r(B
$B;XDj$9$k$3$H$,$G$-$^$9!#$3$l$O$h$jM%2m$J2r7hK!$H$$$&E@$H!"%U%!%$%k$K(B
$B%?%$%W(B<strong>$B$H(B</strong>$B%O%s%I%i$NN>J}$r4XO"IU$1$k$3$H$,$G$-$k$H$$$&(B
$BE@$GM%$l$F$$$^$9!#(B (<a
href="mod/mod_mime.html#multipleext">$BJ#?t$N3HD%;R$N$"$k%U%!%$%k(B</a>
$B$b;2>H$7$F$/$@$5$$(B)$B!#(B</p>
<p>$B%O%s%I%i$O%5!<%P$KAH$_9~$s$@$j!"%b%8%e!<%k$H$7$F4^$a$?$j!"(B
<a href="mod/mod_actions.html#action">Action</a> $B%G%#%l%/%F%#%V$H$7$F(B
$BDI2C$7$?$j$9$k$3$H$,$G$-$^$9!#0J2<$OI8=`G[I[$KAH$_9~$^$l$F$$$k%O%s%I%i$G$9!#(B</p>
<ul>
<li><strong>default-handler</strong>:
<code>default_handelr()</code> $B$r;H$C$F%U%!%$%k$rAw$j$^$9!#(B
$B@EE*$J%3%s%F%s%D$r07$&$H$-$K%G%U%)%k%H$G;HMQ$5$l$k%O%s%I%i$G$9!#(B
(core)
<li><strong>send-as-is</strong>:
HTTP $B%X%C%@$N$"$k%U%!%$%k$r$=$N$^$^Aw$j$^$9!#(B
(<a href="mod/mod_asis.html">mod_asis</a>)
<li><strong>cgi-script</strong>:
$B%U%!%$%k$r(B CGI $B%9%/%j%W%H$H$7$F07$$$^$9!#(B
(<a href="mod/mod_cgi.html">mod_cgi</a>)
<li><strong>imap-file</strong>:
$B%$%a!<%8%^%C%W$N%k!<%k%U%!%$%k$H$7$F2r@O$7$^$9!#(B
(<a href="mod/mod_imap.html">mod_imap</a>)
<li><strong>server-info</strong>:
$B%5!<%P$N@_Dj>pJs$r<hF@$7$^$9!#(B
(<a href="mod/mod_info.html">mod_info</a>)
<li><strong>server-status</strong>:
$B%5!<%P$N>uBVJs9p$r<hF@$7$^$9!#(B
(<a href="mod/mod_status.html">mod_status</a>)
<li><strong>type-map</strong>:
$B%3%s%F%s%H%M%4%7%(!<%7%g%s$N$?$a$N%?%$%W%^%C%W$H$7$F2r@O$7$^$9!#(B
(<a href="mod/mod_negotiation.html">mod_negotiation</a>)
</ul>
<hr>
<h2><a name="examples">$BNc(B</a></h2>
<h3>CGI $B%9%/%j%W%H$rMQ$$$F@EE*$J%3%s%F%s%D$rJQ99$9$k(B</h3>
<p>$B0J2<$N%G%#%l%/%F%#%V$K$h$C$F!"3HD%;R$,(B <code>html</code> $B$G$"$k%U%!%$%k$O(B
<code>footer.pl</code> CGI $B%9%/%j%W%H$r5/F0$9$k$h$&$K$J$j$^$9!#(B</p>
<pre>
Action add-footer /cgi-bin/footer.pl
AddHandler add-footer .html
</pre>
<p>CGI $B%9%/%j%W%H$OK>$^$7$$=$@5$dDI2C$r9T$J$C$F!"85!9MW5a$5$l$?J8=q(B
($B4D6-JQ?t(B <code>PATH_TRANSLATED</code> $B$G;X$5$l$F$$$^$9(B) $B$rAw$k@UG$$,$"$j$^$9!#(B</p>
<h3>HTTP $B%X%C%@$N$"$k%U%!%$%k(B</h3>
<p>$B0J2<$N%G%#%l%/%F%#%V$O(B <code>send-as-is</code> $B%O%s%I%i$r;HMQ$9$k(B
$B$h$&$K;X<($7$^$9!#$3$N%O%s%I%i$O<+J,<+?H$N(B HTTP $B%X%C%@$r;}$C$F$$$k%U%!%$%k$K(B
$B;HMQ$5$l$^$9!#$3$3$G$O!"3HD%;R$K4X$o$i$:!"(B<code>/web/htdocs/asis</code>
$B%G%#%l%/%H%j$K$"$kA4$F$N%U%!%$%k$O(B <code>send-as-is</code> $B%O%s%I%i$K$h$C$F(B
$B07$o$l$^$9!#(B</p>
<pre>
&lt;Directory /web/htdocs/asis&gt;
SetHandler send-as-is
&lt;/Directory&gt;
</pre>
<hr>
<h2><a name="programmer">$B%W%m%0%i%^8~$1$N%a%b(B</a></h2>
<p>$B%O%s%I%i$N5!G=$r<BAu$9$k$?$a$K!"MxMQ$9$k$HJXMx$+$b$7$l$J$$$b$N$,(B
<a href="misc/API.html">Apache API</a> $B$KDI2C$5$l$^$7$?!#(B
$B>\$7$/8@$&$H!"(B<code>request_rec</code> $B9=B$BN$K?7$7$$%l%3!<%I$,(B
$BDI2C$5$l$?$H$$$&$3$H$G$9!#(B</p>
<pre>
char *handler
</pre>
<p>$B$b$7%b%8%e!<%k$,%O%s%I%i$K4X$o$j$?$$>l9g!"$d$i$J$1$l$P$J$i$J$$$3$H$O!"(B
$B%j%/%(%9%H$,(B <code>invoke_handler</code> $B%9%F!<%8$KC#$9$k0JA0$K(B
<code>r-&gt;handler</code> $B$r@_Dj$9$k$3$H$@$1$G$9!#(B
$B%O%s%I%i$O%3%s%F%s%H%?%$%W$NBe$o$j$K%O%s%I%iL>$r;H$&$h$&$K$J$C$F$$$k$3$H0J30$O!"(B
$B0JA0$HF1$8$h$&$K<BAu$5$l$F$$$^$9!#I,$:MW5a$5$l$F$$$k$o$1$G$O$"$j$^$;$s$,!"(B
$B%a%G%#%"%?%$%W$NL>A06u4V$r?/$5$J$$$h$&$K!"%O%s%I%i$NL>A0$K$O%9%i%C%7%e(B
$B$r4^$^$J$$!"%@%C%7%e(B ($BLuCm(B: "-") $B$GJ,N%$5$l$?L>A0$rIU$1$k=,47$K$J$C$F$$$^$9!#(B</P>
<!--#include virtual="footer.html" -->
</body>
</html>