github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/mod/mod_actions.html.ja.utf8 (about) 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head> 4 <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> 5 <!-- 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 This file is generated from xml source: DO NOT EDIT 8 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 9 --> 10 <title>mod_actions - Apache HTTP サーバ バージョン 2.2</title> 11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 13 <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" /> 14 <script src="../style/scripts/prettify.min.js" type="text/javascript"> 15 </script> 16 17 <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/mod/mod_actions.html" rel="canonical" /></head> 18 <body> 19 <div id="page-header"> 20 <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> 21 <p class="apache">Apache HTTP サーバ バージョン 2.2</p> 22 <img alt="" src="../images/feather.gif" /></div> 23 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> 24 <div id="path"> 25 <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> 26 <div id="page-content"> 27 <div class="retired"><h4>Please note</h4> 28 <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p> 29 <p>You may follow <a href="http://httpd.apache.org/docs/current/mod/mod_actions.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>Apache モジュール mod_actions</h1> 30 <div class="toplang"> 31 <p><span>翻訳済み言語: </span><a href="../de/mod/mod_actions.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | 32 <a href="../en/mod/mod_actions.html" hreflang="en" rel="alternate" title="English"> en </a> | 33 <a href="../ja/mod/mod_actions.html" title="Japanese"> ja </a> | 34 <a href="../ko/mod/mod_actions.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> 35 </div> 36 <table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>メディアタイプやリクエストメソッドに応じて 37 CGI スクリプトを実行する機能を提供</td></tr> 38 <tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 39 <tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>actions_module</td></tr> 40 <tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_actions.c</td></tr></table> 41 <h3>概要</h3> 42 43 <p>このモジュールには二つのディレクティブがあります。<code class="directive"><a href="#action">Action</a></code> 44 ディレクティブは特定の <a class="glossarylink" href="../glossary.html#mime-type" title="用語集を参照">MIME タイプ</a> 45 のファイルをリクエストされた場合に 46 CGI スクリプトが実行されるようにします。<code class="directive"><a href="#script">Script</a></code> 47 ディレクティブはリクエストで特定のメソッドが使用されたときに CGI 48 スクリプトが実行されるようにします。 49 これはファイルを処理するスクリプトの実行をずっと簡単にします。</p> 50 </div> 51 <div id="quickview"><h3 class="directives">ディレクティブ</h3> 52 <ul id="toc"> 53 <li><img alt="" src="../images/down.gif" /> <a href="#action">Action</a></li> 54 <li><img alt="" src="../images/down.gif" /> <a href="#script">Script</a></li> 55 </ul> 56 <h3>参照</h3> 57 <ul class="seealso"> 58 <li><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code></li> 59 <li><a href="../howto/cgi.html">CGI による動的コンテンツ</a></li> 60 <li><a href="../handler.html">Apache のハンドラの使用</a></li> 61 </ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> 62 63 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 64 <div class="directive-section"><h2><a name="Action" id="Action">Action</a> <a name="action" id="action">ディレクティブ</a></h2> 65 <table class="directive"> 66 <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>特定のハンドラやコンテントタイプに対して CGI を実行するように 67 設定</td></tr> 68 <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>Action <var>action-type</var> <var>cgi-script</var> [virtual]</code></td></tr> 69 <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr> 70 <tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>FileInfo</td></tr> 71 <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 72 <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_actions</td></tr> 73 <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td><code>virtual</code> 修飾子とハンドラ渡しは 74 Apache 2.1 で導入されました</td></tr> 75 </table> 76 <p>このディレクティブは <var>action-type</var> 77 がリクエストされたときに <var>cgi-script</var> 78 が実行されるという動作を追加します。<var>cgi-script</var> は 79 <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code> や 80 <code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code> によって 81 CGI スクリプトに設定されたリソースへの URL-path です。 82 <var>Action-type</var> には 83 <a href="../handler.html">handler</a> か <a class="glossarylink" href="../glossary.html#mime-type" title="用語集を参照">MIME 84 コンテントタイプ</a>を指定できます。リクエストされたドキュメントの URL 85 とファイルのパスは標準 CGI 環境変数 <code>PATH_INFO</code> と 86 <code>PATH_TRANSLATED</code> を使って伝えられます。 87 特定のリクエストに対して使用されるハンドラへは、 88 <code>REDIRECT_HANDLER</code> 変数を使って渡せます。</p> 89 90 <div class="example"><h3>例</h3><p><code> 91 # Requests for files of a particular MIME content type:<br /> 92 Action image/gif /cgi-bin/images.cgi<br /> 93 <br /> 94 # Files of a particular file extension<br /> 95 AddHandler my-file-type .xyz<br /> 96 Action my-file-type /cgi-bin/program.cgi<br /> 97 </code></p></div> 98 99 <p>最初の例では、MIME コンテントタイプが <code>image/gif</code> 100 のファイルへのリクエストは、指定したスクリプト 101 <code>/cgi-bin/images.cgi</code> で処理されます。</p> 102 103 <p>2 番目の例では、拡張子が <code>.xyz</code> 104 のファイルへのリクエストは、指定したスクリプト 105 <code>/cgi-bin/program.cgi</code> で処理されます。</p> 106 107 <p>オプションの <code>virtual</code> 修飾子を使用すると、 108 リクエストされたファイルが実際に存在するかどうかを検査しないようにできます。 109 これは例えば、<code class="directive">Action</code> ディレクティブをバーチャルな 110 Location に使用したい、といった場合に便利です。</p> 111 112 <div class="example"><h3>例</h3><p><code> 113 <Location /news><br /> 114 <span class="indent"> 115 SetHandler news-handler<br /> 116 Action news-handler /cgi-bin/news.cgi virtual<br /> 117 </span> 118 </Location> 119 </code></p></div> 120 121 <h3>参照</h3> 122 <ul> 123 <li><code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code></li> 124 </ul> 125 </div> 126 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 127 <div class="directive-section"><h2><a name="Script" id="Script">Script</a> <a name="script" id="script">ディレクティブ</a></h2> 128 <table class="directive"> 129 <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>特定のリクエストメソッドに対して CGI スクリプトを 130 実行するように設定</td></tr> 131 <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>Script <var>method</var> <var>cgi-script</var></code></td></tr> 132 <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ</td></tr> 133 <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 134 <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_actions</td></tr> 135 </table> 136 <p>このディレクティブは <var>method</var> 137 というメソッドを使ってリクエストが行なわれたときに 138 <var>cgi-script</var> を実行するという動作を追加します。 139 <var>cgi-script</var> は 140 <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code> や 141 <code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code> によって 142 CGI スクリプトに設定されたリソースへの URL-path です。 143 リクエストされたドキュメントの URL とファイルのパスは標準 CGI 144 環境変数 <code>PATH_INFO</code> と <code>PATH_TRANSLATED</code> 145 を使って伝えられます。</p> 146 147 <div class="note"> 148 任意のメソッド名を使用することができます。 149 <strong>メソッド名は大文字小文字を区別します</strong>。ですから、 150 <code>Script PUT</code> と <code>Script put</code> 151 はまったく違った効果になります。 152 </div> 153 154 <p><code class="directive">Script</code> コマンドはデフォルトの動作を 155 追加するだけであることに 156 注意してください。もし CGI スクリプトが呼ばれたり、リクエストされた 157 メソッドを内部で扱うことのできる他のリソースがあれば、それが行なわれます。 158 <code>GET</code> メソッドの <code class="directive">Script</code> は問合せ 159 引数がある場合にのみ 160 (<em>たとえば</em>、foo.html?hi) 呼ばれるということにも注意してください。 161 そうでない場合は、リクエストは通常通り処理されます。</p> 162 163 <div class="example"><h3>例</h3><p><code> 164 # For <ISINDEX>-style searching<br /> 165 Script GET /cgi-bin/search<br /> 166 <br /> 167 # A CGI PUT handler<br /> 168 Script PUT /~bob/put.cgi<br /> 169 </code></p></div> 170 171 </div> 172 </div> 173 <div class="bottomlang"> 174 <p><span>翻訳済み言語: </span><a href="../de/mod/mod_actions.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | 175 <a href="../en/mod/mod_actions.html" hreflang="en" rel="alternate" title="English"> en </a> | 176 <a href="../ja/mod/mod_actions.html" title="Japanese"> ja </a> | 177 <a href="../ko/mod/mod_actions.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> 178 </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> 179 <script type="text/javascript"><!--//--><![CDATA[//><!-- 180 var comments_shortname = 'httpd'; 181 var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_actions.html'; 182 (function(w, d) { 183 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 184 d.write('<div id="comments_thread"><\/div>'); 185 var s = d.createElement('script'); 186 s.type = 'text/javascript'; 187 s.async = true; 188 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 189 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 190 } 191 else { 192 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 193 } 194 })(window, document); 195 //--><!]]></script></div><div id="footer"> 196 <p class="apache">Copyright 2017 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> 197 <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[//><!-- 198 if (typeof(prettyPrint) !== 'undefined') { 199 prettyPrint(); 200 } 201 //--><!]]></script> 202 </body></html>