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 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 This file is generated from xml source: DO NOT EDIT
6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8 <title>mod_asis - Apache HTTP サーバ
</title>
9 <link href=
"../style/css/manual.css" rel=
"stylesheet" media=
"all" type=
"text/css" title=
"Main stylesheet" />
10 <link href=
"../style/css/manual-loose-100pc.css" rel=
"alternate stylesheet" media=
"all" type=
"text/css" title=
"No Sidebar - Default font size" />
11 <link href=
"../style/css/manual-print.css" rel=
"stylesheet" media=
"print" type=
"text/css" />
12 <link href=
"../images/favicon.ico" rel=
"shortcut icon" /></head>
14 <div id=
"page-header">
15 <p class=
"menu"><a href=
"../mod/">モジュール
</a> |
<a href=
"../mod/directives.html">ディレクティブ
</a> |
<a href=
"../faq/">FAQ
</a> |
<a href=
"../glossary.html">用語
</a> |
<a href=
"../sitemap.html">サイトマップ
</a></p>
16 <p class=
"apache">Apache HTTP サーバ バージョン
2.3</p>
17 <img alt=
"" src=
"../images/feather.gif" /></div>
18 <div class=
"up"><a href=
"./"><img title=
"<-" alt=
"<-" src=
"../images/left.gif" /></a></div>
20 <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=
"../">バージョン
21 2.3</a> > <a href=
"./">モジュール
</a></div>
22 <div id=
"page-content">
23 <div id=
"preamble"><h1>Apache モジュール mod_asis
</h1>
25 <p><span>言語:
</span><a href=
"../en/mod/mod_asis.html" hreflang=
"en" rel=
"alternate" title=
"English"> en
</a> |
26 <a href=
"../ja/mod/mod_asis.html" title=
"Japanese"> ja
</a> |
27 <a href=
"../ko/mod/mod_asis.html" hreflang=
"ko" rel=
"alternate" title=
"Korean"> ko
</a></p>
29 <table class=
"module"><tr><th><a href=
"module-dict.html#Description">説明:
</a></th><td>自分用の HTTP ヘッダの書かれているファイルを送信する
</td></tr>
30 <tr><th><a href=
"module-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
31 <tr><th><a href=
"module-dict.html#ModuleIdentifier">モジュール識別子:
</a></th><td>asis_module
</td></tr>
32 <tr><th><a href=
"module-dict.html#SourceFile">ソースファイル:
</a></th><td>mod_asis.c
</td></tr></table>
35 <p>このモジュールはハンドラ
<code>send-as-is
</code>
36 を提供します。このハンドラは通常の HTTP
37 ヘッダをほとんど追加することなくドキュメントを送信します。
</p>
39 <p>これはサーバからどんな種類のデータを送るときにも使用できます。
40 Cgi スクリプトや nph スクリプトが無くてもリダイレクトや他の特別な
41 HTTP 応答を送ることができます。
</p>
43 <p>歴史的な理由により、このモジュールは mime タイプ
44 <code>httpd/send-as-is
</code> のファイルも処理します。
</p>
46 <div id=
"quickview"><h3 class=
"directives">ディレクティブ
</h3>
47 <p>このモジュールにディレクティブはありません。
</p>
50 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#usage">使用法
</a></li>
53 <li><code class=
"module"><a href=
"../mod/mod_headers.html">mod_headers
</a></code></li>
54 <li><code class=
"module"><a href=
"../mod/mod_cern_meta.html">mod_cern_meta
</a></code></li>
55 <li><a href=
"../handler.html">Apache のハンドラの使用
</a></li>
57 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
59 <h2><a name=
"usage" id=
"usage">使用法
</a></h2>
61 <p>サーバ設定ファイルで、ファイルと
<code>send-as-is
</code>
62 ハンドラを例えば以下のように関連付けてください。
</p>
64 <div class=
"example"><p><code>AddHandler send-as-is asis
</code></p></div>
66 <p>拡張子が
<code>.asis
</code> のすべてのファイルの内容は Apache
67 からクライアントへほとんど変更無く送られます。
68 HTTP ヘッダは特別で、ファイルから
<code class=
"module"><a href=
"../mod/mod_cgi.html">mod_cgi
</a></code>
69 のルールに従って取り出されます。ですから asis ファイルには
70 正しいヘッダが記載されていなければなりませし、
71 また CGI での表記法であるところの Status: ヘッダを使って
72 HTTP レスポンスコードを決めることもできます。
</p>
74 <p>これはクライアントにファイルが移動したことを知らせるために
75 <em>as is
</em> (そのまま) で送られるファイルの内容の例です。
79 <div class=
"example"><p><code>
80 Status:
301 Now where did I leave that URL
<br />
81 Location: http://xyz.abc.com/foo/bar.html
<br />
82 Content-type: text/html
<br />
86 <title
>Lame excuses'R'us
</title
><br />
89 <h1
>Fred's exceptionally wonderful page has moved to
<br />
90 <a
href=
"http://xyz.abc.com/foo/bar.html">Joe's
</a
>
97 <div class=
"note"><h3>注意
</h3>
98 <p>注意: サーバはクライアントに返されるデータに常に
<code>Date:
</code>
99 と
<code>Server:
</code> ヘッダを追加しますので、
100 それらがファイルに書かれていてはいけません。
101 サーバは
<code>Last-Modified
</code> ヘッダを追加
<em>しません
</em>。
102 おそらくはそうすべきでしょうけれど。
</p>
106 <div class=
"bottomlang">
107 <p><span>言語:
</span><a href=
"../en/mod/mod_asis.html" hreflang=
"en" rel=
"alternate" title=
"English"> en
</a> |
108 <a href=
"../ja/mod/mod_asis.html" title=
"Japanese"> ja
</a> |
109 <a href=
"../ko/mod/mod_asis.html" hreflang=
"ko" rel=
"alternate" title=
"Korean"> ko
</a></p>
110 </div><div id=
"footer">
111 <p class=
"apache">Copyright
2009 The Apache Software Foundation.
<br />Licensed under the
<a href=
"http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version
2.0</a>.
</p>
112 <p class=
"menu"><a href=
"../mod/">モジュール
</a> |
<a href=
"../mod/directives.html">ディレクティブ
</a> |
<a href=
"../faq/">FAQ
</a> |
<a href=
"../glossary.html">用語
</a> |
<a href=
"../sitemap.html">サイトマップ
</a></p></div>