<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.ja.xsl"?>
-<!-- English Revision: 420990:1334033 (outdated) -->
+<!-- English Revision: 1334033 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
であるファイルは <code>footer.pl</code>
CGI スクリプトを起動するようになります。</p>
- <example>
- Action add-footer /cgi-bin/footer.pl<br/>
- AddHandler add-footer .html
- </example>
+ <highlight language="config">
+Action add-footer /cgi-bin/footer.pl
+AddHandler add-footer .html
+ </highlight>
<p>CGI スクリプトは希望の修正や追加を行なって、元々要求された文書
(環境変数 <code>PATH_TRANSLATED</code>
<code>/web/htdocs/asis</code> ディレクトリにある全てのファイルは
<code>send-as-is</code> ハンドラによって扱われます。</p>
- <example>
- <Directory /web/htdocs/asis><br/>
- SetHandler send-as-is<br/>
- </Directory>
- </example>
+ <highlight language="config">
+<Directory /web/htdocs/asis>
+ SetHandler send-as-is
+</Directory>
+ </highlight>
</section>
</section>
に追加されました。詳しく言うと、<code>request_rec</code>
構造体に新しいレコードが追加されたということです。</p>
- <example>
- char *handler
- </example>
+ <highlight language="c">
+ char *handler
+ </highlight>
<p>もしモジュールがハンドラに関わりたい場合、
やらなければならないことは、リクエストが <code>invoke_handler</code>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 420990:1070853 (outdated) -->
+<!-- English Revision: 1597081 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
生成プログラムとどのように相互動作をするかを定義します。
その外部プログラムは通常 CGI プログラムや CGI スクリプトと呼ばれます。
CGI はウェブサイトに動的なコンテンツを追加するための、
- 一番単純でよく使われている方法です。この文書は Apache ウェブサーバに
+ 単純な方法です。この文書は Apache ウェブサーバに
CGI を設定し、CGI プログラムを書き始めるためのイントロダクションです。</p>
<p>参照: <a href="cgi.html">CGI: 動的コンテンツ</a></p>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 659902:1591193 (outdated) -->
+<!-- English Revision: 1591193 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<p>スラッシュで始まらないパスが与えられたときは、ユーザのホームディレクトリ
からの相対パスとみなされます。次の設定があったときに:</p>
- <example>
- UserDir public_html
- </example>
+ <highlight language="config">UserDir public_html</highlight>
<p>URL <code>http://example.com/~rbowen/file.html</code> は
パス <code>/home/rbowen/public_html/file.html</code> へ
<p>パスがスラッシュで始まるときは、ディレクトリパスはそのパスに
ユーザ名を加えたものからなります。次の設定のとき:</p>
- <example>
- UserDir /var/html
- </example>
+ <highlight language="config">UserDir /var/html</highlight>
<p>URL <code>http://example.com/~rbowen/file.html</code> は
パス <code>/var/html/rbowen/file.html</code> へ変換されます。</p>
<p>アスタリスク (*) を含むパスが指定されたときは、アスタリスクを
ユーザ名で置換したものが使用されます。このような設定だと:</p>
- <example>
- UserDir /var/www/*/docs
- </example>
+ <highlight language="config">UserDir /var/www/*/docs</highlight>
<p>URL <code>http://example.com/~rbowen/file.html</code> は
パス <code>/var/www/rbowen/docs/file.html</code> へ変換されます。</p>
<p>ディレクトリやディレクトリパスを複数設定することもできます。</p>
- <example>
- UserDir public_html /var/html
- </example>
+ <highlight language="config">UserDir public_html /var/html</highlight>
+
<p><code>http://example.com/~rbowen/file.html</code> という
URL に対しては <code>~rbowen</code> を探します。見つからなければ、
<title>外部 URL にリダイレクトする</title>
<p><directive module="mod_userdir">UserDir</directive>
ディレクティブを使って外部 URL にリダイレクトすることもできます。</p>
-
- <example>
- UserDir http://example.org/users/*/
- </example>
+
+ <highlight language="config">UserDir http://example.org/users/*/</highlight>
+
<p>上記例では <code>http://example.com/~bob/abc.html</code>
へのリクエストは <code>http://example.org/users/bob/abc.html</code>
対して UserDir の機能を有効にします。同様にして、以下のように
数名のユーザ以外に対してこの機能を無効にすることもできます:</p>
- <example>
+ <highlight language="config">
UserDir disabled<br />
UserDir enabled rbowen krietz
- </example>
+ </highlight>
<p>他の例は <directive module="mod_userdir">UserDir</directive>
の説明を参照してください。</p>
を使ってユーザのホームディレクトリの指定された領域に対して CGI を有効に
することができます。</p>
- <example>
- <Directory /home/*/public_html/cgi-bin/><br />
- Options ExecCGI<br />
- SetHandler cgi-script<br />
- </Directory>
- </example>
+ <highlight language="config">
+<Directory /home/*/public_html/cgi-bin/>
+ Options ExecCGI
+ SetHandler cgi-script
+</Directory>
+ </highlight>
<p>そして、<code>UserDir</code> が
<code>public_html</code> に設定されていると仮定すると、
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 420990:1544630 (outdated) -->
+<!-- English Revision: 1544630 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<directive module="core" type="section">Directory</directive>,
<directive module="core" type="section">Location</directive>,
<directive module="core" type="section">Files</directive>,
+ <directive module="core" type="section">If</directive>,
<directive module="mod_proxy" type="section">Proxy</directive>
コンテナの中で、 <a
href="../sections.html">設定セクション</a>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 558718:1334011 (outdated) -->
+<!-- English Revision: 1334011 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<identifier>cgi_module</identifier>
<summary>
- <!-- XXX: Should mention Options ExecCGI
- is the link to howto/cgi not sufficient? -nd
- -->
-
<p>ハンドラ <code>cgi-script</code>
が指定されているファイルは CGI スクリプトとして扱われ、
サーバにより実行され、その出力がクライアントに返されます。
</summary>
<seealso><directive module="core">AcceptPathInfo</directive></seealso>
-<seealso><directive module="core">Options</directive></seealso>
+<seealso><directive module="core">Options</directive> ExecCGI</seealso>
<seealso><directive module="mod_alias">ScriptAlias</directive></seealso>
<seealso><directive module="mod_mime">AddHandler</directive></seealso>
<seealso><a href="../suexec.html">CGI プログラムを別のユーザ ID で実行する</a></seealso>
-<seealso><a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI 規格書</a></seealso>
+<seealso><a href="http://www.ietf.org/rfc/rfc3875">CGI 規格書</a></seealso>
<section id="env"><title>CGI 環境変数</title>
- <p>サーバは <a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI
+ <p>サーバは <a href="http://www.ietf.org/rfc/rfc3875">CGI
規格</a> で決められている CGI
環境変数を設定します。以下のものは、条件付きで設定されます。</p>
<dt>REMOTE_IDENT</dt>
- <dd><directive module="core">IdentityCheck</directive>
+ <dd><directive module="mod_ident">IdentityCheck</directive>
が <code>on</code> に設定されていて、アクセスしているホストが
ident プロトコルをサポートしているときにのみ設定されます。
これは簡単に偽ることができ、クライアントとサーバの間に
<p>CGI スクリプトのデバッグは、正しく動作していないスクリプトの出力
(標準出力とエラー)
を調べることができないために、難しい状態が続いていました。
- これらの Apache 1.2 以降にある
- ディレクティブはより詳細なエラーのログ収集を提供します。</p>
+ これらのディレクティブはより詳細なエラーのログ収集を提供します。</p>
<section><title>CGI ログファイルの書式</title>
<p>設定されているときには、CGI エラーログは適切に動作しないすべての
扱われます。</p>
<example><title>例</title>
+ <highlight language="config">
ScriptLog logs/cgi_log
+ </highlight>
</example>
<p>このログは子プロセスが実行されているユーザとしてオープンされます。
- <em>すなわち</em>、<directive module="mpm_commmon"
+ <em>すなわち</em>、<directive module="mod_unixd"
>User</directive> ディレクティブで指定された
ユーザです。これは、スクリプトログが書かれるディレクトリがそのユーザで
書き込み可能か、スクリプトファイルが手動で作成され、そのユーザで
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 659902:1334011 (outdated) -->
+<!-- English Revision: 1334011 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<p>mod_dav を有効にするには、<code>httpd.conf</code>
ファイル中のコンテナに次を加えます:</p>
- <example>Dav On</example>
+ <highlight language="config">Dav On</highlight>
<p>これは DAV ファイルシステムプロバイダを有効にします。DAV
ファイルシステムプロバイダは <module>mod_dav_fs</module>
<code>httd.conf</code> ファイルのグローバルセクションに指定されている
必要があります。</p>
- <example>
+ <highlight language="config">
DavLockDB /usr/local/apache2/var/DavLock
- </example>
+ </highlight>
<p>ロックデータベースファイルのあるディレクトリは Apache が実行されている
- <directive module="mpm_common">User</directive> と <directive
- module="mpm_common" >Group</directive> に書き込み権限がある必要があります。</p>
+ <directive module="mod_unixd">User</directive> と <directive
+ module="mod_unixd" >Group</directive> に書き込み権限がある必要があります。</p>
<p><directive module="core" type="section">Limit</directive>
節を <directive module="core" type="section">Location</directive>
ディレクティブは DAV リクエストに対しては効力を持ちません。</p>
<example><title>完全な例</title>
- DavLockDB /usr/local/apache2/var/DavLock<br />
- <br />
- <Directory /usr/local/apache2/htdocs/foo><br />
- <indent>
- Order Allow,Deny<br />
- Allow from all<br />
- Dav On<br />
- <br />
- AuthType Basic<br />
- AuthName DAV<br />
- AuthUserFile user.passwd<br />
- <br />
- <LimitExcept GET POST OPTIONS><br />
- <indent>
- Require user admin<br />
- </indent>
- </LimitExcept><br />
- </indent>
- </Directory><br />
+ <highlight language="config">
+DavLockDB /usr/local/apache2/var/DavLock
+
+<Directory /usr/local/apache2/htdocs/foo>
+ Require all granted
+ Dav On
+
+ AuthType Basic
+ AuthName DAV
+ AuthUserFile user.passwd
+
+ <LimitExcept GET POST OPTIONS>
+ Require user admin
+ </LimitExcept>
+</Directory>
+ </highlight>
</example>
- <p><module>mod_dav</module> は Greg Stein さんの <a
- href="http://www.webdav.org/mod_dav/">Apache 1.3 用の mod_dav</a> に
- 由来するものです。そのサイトからより多くの情報を手に入れることができます。</p>
</section>
<section id="security"><title>セキュリティの問題</title>
<p><module>mod_dav</module> がファイルを操作できるようにするためには、
管理下のディレクトリとファイルとに Apache が実行されている <directive
- module="mpm_common">User</directive> と <directive
- module="mpm_common">Group</directive> で書き込み可能である必要があります。
- 新しく作成されるファイルもこの <directive module="mpm_common">User</directive>
- と <directive module="mpm_common">Group</directive> に所有される
+ module="mod_unixd">User</directive> と <directive
+ module="mod_unixd">Group</directive> で書き込み可能である必要があります。
+ 新しく作成されるファイルもこの <directive module="mod_unixd">User</directive>
+ と <directive module="mod_unixd">Group</directive> に所有される
ことになります。この理由から、そのアカウントへのアクセスを制御することは
重要です。DAV リポジトリは Apache 専用のものだとみなされています。
Apache 以外の方法でファイルを修正すること (例えば FTP やファイルシステム
一つはスクリプトを実行させ、もう一つはダウンロードさせたり、DAV から
操作されたりするように設定するというものがあります。</p>
-<example>
-Alias /phparea /home/gstein/php_files<br />
-Alias /php-source /home/gstein/php_files<br />
+<highlight language="config">
+Alias /phparea /home/gstein/php_files
+Alias /php-source /home/gstein/php_files
<Location /php-source>
-<indent>
- DAV On<br />
- ForceType text/plain<br />
-</indent>
+ DAV On
+ ForceType text/plain
</Location>
-</example>
+</highlight>
<p>この設定により、<code>http://example.com/phparea</code> を PHP スクリプトの
出力をアクセスするために使うことができ、
<p>与えられたコンテナで WebDAV HTTP メソッドが使えるようにするには
次のようにします。</p>
- <example>
- <Location /foo><br />
- <indent>
- Dav On<br />
- </indent>
- </Location>
- </example>
+ <highlight language="config">
+<Location /foo>
+ Dav On
+</Location>
+ </highlight>
<p><code>On</code> という指定は実際には <module>mod_dav_fs</module>
で提供されているデフォルトのプロバイダ、<code>filesystem</code>
これをもっと大きな値 (例えば 600 秒) に上書きできます。</p>
<example><title>例</title>
- <Location /MSWord><br />
- <indent>
- DavMinTimeout 600<br />
- </indent>
- </Location>
+ <highlight language="config">
+<Location /MSWord>
+ DavMinTimeout 600
+</Location>
+ </highlight>
</example>
-</usage>
+</usage>
</directivesynopsis>
<directivesynopsis>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 654507:1421892 (outdated) -->
+<!-- English Revision: 1421892 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<status>Experimental</status>
<sourcefile>mod_echo.c</sourcefile>
<identifier>echo_module</identifier>
-<compatibility>Apache 2.0 以降</compatibility>
<summary>
<p>本モジュールはコンセプトを伝えるためのプロトコルモジュールの
<default>ProtocolEcho Off</default>
<contextlist><context>server config</context>
<context>virtual host</context></contextlist>
-<compatibility>Apache 2.0 以降</compatibility>
<usage>
<p><directive>ProtocolEcho</directive> ディレクティブで
エコーサーバの有効無効を設定します。</p>
<example><title>例</title>
+ <highlight language="config">
ProtocolEcho On
+ </highlight>
</example>
</usage>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 420993:1421892 (outdated) -->
+<!-- English Revision: 1421892 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<status>Extension</status>
<sourcefile>mod_version.c</sourcefile>
<identifier>version_module</identifier>
-<compatibility>バージョン 2.0.56 以降</compatibility>
<summary>
<p>様々なバージョンの httpd の異なる設定を扱うことになる、
バージョンチェックができるようになります。</p>
<example><title>例</title>
- <IfVersion 2.1.0><br />
- <indent>
- # current httpd version is exactly 2.1.0<br />
- </indent>
- </IfVersion><br />
- <br />
- <IfVersion >= 2.2><br />
- <indent>
- # use really new features :-)<br />
- </indent>
- </IfVersion>
+ <highlight language="config">
+<IfVersion 2.4.2>
+ # current httpd version is exactly 2.4.2
+</IfVersion>
+
+<IfVersion >= 2.5>
+ # use really new features :-)
+</IfVersion>
+ </highlight>
</example>
<p>詳細は以下を読んでください。</p>
</table>
<example><title>例</title>
- <IfVersion >= 2.1><br />
- <indent>
- # this happens only in versions greater or<br />
- # equal 2.1.0.<br />
- </indent>
- </IfVersion>
+ <highlight language="config">
+<IfVersion >= 2.3>
+ # this happens only in versions greater or
+ # equal 2.3.0.
+</IfVersion>
+ </highlight>
</example>
<p>数値比較に加えて、http のバージョン番号に対して
</table>
<example><title>例</title>
- <IfVersion = /^2.1.[01234]$/><br />
- <indent>
- # e.g. workaround for buggy versions
- </indent>
- </IfVersion>
+ <highlight language="config">
+<IfVersion = /^2.4.[01234]$/>
+ # e.g. workaround for buggy versions
+</IfVersion>
+ </highlight>
</example>
<p>マッチングの否定を表現するために、すべてのオペレータは前に
感嘆符 (<code>!</code>)を付けることができます:</p>
- <example>
- <IfVersion !~ ^2.1.[01234]$><br />
- <indent>
- # not for those versions<br />
- </indent>
- </IfVersion>
- </example>
+ <highlight language="config">
+<IfVersion !~ ^2.4.[01234]$>
+ # not for those versions
+</IfVersion>
+ </highlight>
<p><var>operator</var> が省略されたときは <code>=</code> と
みなされます。</p>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE quickreference SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 636495:1070904 (outdated) -->
+<!-- English Revision: 1070904 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<p>第 1 列目はディレクティブの名前と使用方法です。
第 2 列目は (もしあれば) デフォルト値となっています。
- デフォルト値が長すぎて表示しきれない場合は、最初の文字列の後ろに
- ã\80\8c + ã\80\8dã\81\8cç¶\9aã\81\8dます。</p>
+ デフォルト値が長すぎて表示しきれない場合は、途中まで表示した上で、、
+ ã\80\8c + ã\80\8dã\81§ç¶\9aã\81\8dã\81\8cã\81\82ã\82\8bã\81\93ã\81¨ã\82\92示ã\81\97ã\81¦ã\81\84ます。</p>
<p>第 3, 4 列は、下の表の注釈に従って、
ディレクティブの使用できるコンテキストと、
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 420990:1333999 (outdated) -->
+<!-- English Revision: 1333999 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<a href="http://www.openssl.org/">OpenSSL</a>
ライブラリへのインターフェースを提供していますが、これは
Secure Sockts Layer と Transport Layer Security
-プロトコルを用いた強力な暗号化を提供します。
-このモジュールやこの文書は Ralf S. Engelschall の mod_ssl
-プロジェクトに基づいています。</p>
+プロトコルを用いた強力な暗号化を提供します。</p>
</summary>
<section id="documentation"><title>Documentation</title>
<ul>
-<li><a href="ssl_intro.html">はじめに</a></li>
+<li><a href="ssl_howto.html">mod_ssl Configuration How-To</a></li>
+<li><a href="ssl_intro.html">Introduction To SSL</a></li>
<li><a href="ssl_compat.html">互換性</a></li>
-<li><a href="ssl_howto.html">How-To</a></li>
<li><a href="ssl_faq.html">よくある質問</a></li>
<li><a href="../glossary.html">用語</a></li>
</ul>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.ja.xsl"?>
-<!-- English Revision: 655319:1174747 (outdated) -->
+<!-- English Revision: 1174747 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<manualpage metafile="stopping.xml.meta">
- <title>停止と再起動</title>
+ <title>Apache HTTP Server の停止と再起動</title>
<summary>
<p>この文書では Unix に類似したシステムでの
- Apache の停止と再起動について扱っています。
+ Apache HTTP Serverの停止と再起動について扱っています。
Windows NT, 2000, XP ユーザは<a
href="platform/windows.html#winsvc">サービスとして
- Apache を実行する</a>で、Windows 9x, MEユーザは<a
+ httpd を実行する</a>で、Windows 9x, MEユーザは<a
href="platform/windows.html#wincons">コンソールアプリケーションとして
- Apache を実行する</a>で、
+ httpd を実行する</a>で、
これらのプラットホームでの使用方法をご覧下さい。</p>
</summary>
<section id="introduction"><title>イントロダクション</title>
- <p>Apache を停止したり再起動したりするためには、実行されている
+ <p>Apache HTTP Server を停止したり再起動したりするためには、実行されている
<program>httpd</program> プロセスにシグナルを送る必要があります。
シグナルを送るには二つの方法があります。
一つ目はプロセスに直接シグナルを送る unix の <code>kill</code>
<note><p><code>graceful-stop</code> を使うとまったく同一に設定された
複数の <program>httpd</program> を同時に実行することができます。
- Apache を緩やかにアップグレードするのにはとても便利ですが、
+ httpd を緩やかにアップグレードするのにはとても便利ですが、
設定ファイルによってはデッドロックやレースコンディションを
引き起こすこともあります。</p>
- <p>ディスク上のファイルを使うもの、たとえば
- <directive module="core">Lockfile</directive> や
- <directive module="mod_cgid">ScriptSock</directive>
- ã\81®ã\83\95ã\82¡ã\82¤ã\83«ã\81ªã\81©ã\81¯ã\82µã\83¼ã\83\90ã\81® PID ã\82\92å\90«ã\82\81ã\81¦ç®¡ç\90\86ã\81\95ã\82\8cã\81¦ã\81\84ã\81¦ã\80\81
+ <p>ディスク上のファイルを使うもの、たとえばロックファイル
+ (<directive module="core">Mutex</directive>) や Unix ソケットファイル
+ (<directive module="mod_cgid">ScriptSock</directive>)
+ などはサーバの PID を含めて管理されていて、
共存できるよう注意が払われています。
しかしその他設定ディレクティブやサードパーティ製のモジュール、
CGI ユーティリティのパーシステント層などで