📄 mod_mime.html.ja.euc-jp
字号:
<div class="example"><h3>毋</h3><p><code>
DefaultLanguage en
</code></p></div>
<h3>徊救</h3>
<ul>
<li><code class="module"><a href="../mod/mod_negotiation.html">mod_negotiation</a></code></li>
</ul>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ModMimeUsePathInfo" id="ModMimeUsePathInfo">ModMimeUsePathInfo</a> <a name="modmimeusepathinfo" id="modmimeusepathinfo">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td><code>path_info</code> コンポ〖ネントをファイル叹の办婶として胺うように
<code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code> に奶梦する</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>ModMimeUsePathInfo On|Off</code></td></tr>
<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ModMimeUsePathInfo Off</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>ベ〖ス</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_mime</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">高垂拉:</a></th><td>Apache 2.0.41 笆惯</td></tr>
</table>
<p><code class="directive">ModMimeUsePathInfo</code> ディレクティブは、
<code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code> の积つディレクティブを
リクエストに努脱させるために、ファイル叹と <code>path_info</code> URL
コンポ〖ネントを冯圭させるために蝗脱します。
デフォルトでは≈ <code>Off</code> ∽で、<code>path_info</code>
コンポ〖ネントは痰浑されます。</p>
<p>このディレクティブは、バ〖チャルファイルシステムを蝗脱している狠に
夸京されるディレクティブです。</p>
<div class="example"><h3>毋</h3><p><code>
ModMimeUsePathInfo On
</code></p></div>
<p><code>/bar</code> が赂哼して (foo.shtml は赂哼しない)
<code class="directive">ModMimeUsePathInfo</code> が <code>On</code> であるとして、
<code>/bar/foo.shtml</code> に滦するリクエストを券乖した眷圭、
<code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code> は掐ってきたリクエストを
<code>/bar/foo.shtml</code> として胺い、
<code>AddOutputFileter INCLUDES .shtml</code> のようなディレクティブは
<code>INCLUDES</code> フィルタをリクエストに烧裁させます。
<code class="directive">ModMimeUsePathInfo</code> が肋年されなければ、
<code>INCLUDES</code> フィルタは烧裁されません。</p>
<h3>徊救</h3>
<ul>
<li><code class="directive"><a href="../mod/core.html#acceptpathinfo">AcceptPathInfo</a></code></li>
</ul>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="MultiviewsMatch" id="MultiviewsMatch">MultiviewsMatch</a> <a name="multiviewsmatch" id="multiviewsmatch">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>MultiViews でのマッチングの浮瑚に崔ませる
ファイルのタイプを回年する</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>MultiviewsMatch Any|NegotiatedOnly|Filters|Handlers
[Handlers|Filters]</code></td></tr>
<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>MultiviewsMatch NegotiatedOnly</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト, ディレクトリ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">惧今き:</a></th><td>FileInfo</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>ベ〖ス</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_mime</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">高垂拉:</a></th><td>2.0.26 笆惯で蝗脱材墙</td></tr>
</table>
<p><code class="directive">MultiviewsMatch</code> を蝗脱することで、
<a href="mod_negotiation.html">mod_negotiation</a> の
Multiviews に 3 硷梧の佰なる刁瓢をさせることができます。
Multiviews を蝗脱すると、ファイル (毋 <code>index.html</code>)
に滦するリクエストに滦して、ネゴシエ〖ションする橙磨灰がベ〖スに烧いたもの
(<code>index.html.en</code>, <code>index.html.fr</code> や
<code>index.html.gz</code>)
をマッチさせることができます。</p>
<p><code>NegotiatedOnly</code> オプションでは、ベ〖ス叹に鲁く橙磨灰链てが
コンテントネゴシエ〖ションで <code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code>
が千急する橙磨灰 (<em>毋</em> 矢机セット、コンテントタイプ、咐胳やエンコ〖ディング)
に簇息烧けられていなければなりません。これは甥侯脱の呵も警ない
呵も弄澄な悸刘で、デフォルトになっています。</p>
<p>ハンドラとフィルタの尉数もしくは室数と簇息烧けられた橙磨灰を崔めるには、
<code class="directive">MultiviewsMatch</code> ディレクティブに <code>Handlers</code>,
<code>Filters</code> またはその尉数のオプションをセットします。
もし戮の掘凤が票じであれば、呵も井さいファイルが流慨されます。
毋えば、500 矢机の <code>index.html.cgi</code> と 1000 バイトの
<code>index.html.pl</code> であれば、<code>.cgi</code>
のファイルが庭黎されます。<code>.asis</code> ファイルを网脱しているユ〖ザは、
<code>.asis</code> ファイルが <code>asis-handler</code> に簇息烧けられているときには、
ハンドラオプションの蝗脱を攻むでしょう。</p>
<p>呵稿に、<code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code> が千急しない橙磨灰であろうとも、
どんな橙磨灰でもマッチさせる <code>Any</code> が蝗脱できます。
この刁瓢は Apache 1.3 のときと票じもので、徒袋しない瓢侯、毋えば <code>.old</code> や
<code>.bak</code> ファイルといったウェブマスタが流慨を罢哭していない
ファイルを流慨する、といった瓢侯を乖なう材墙拉があります。</p>
<p>毋えば肌の肋年では、ハンドラやフィルタが Multiviews に徊裁することが
できますし、踏梦のファイルは近嘲することができます。</p>
<div class="example"><p><code>
MultiviewsMatch Handlers Filters
</code></p></div>
<h3>徊救</h3>
<ul>
<li><code class="directive"><a href="../mod/core.html#options">Options</a></code></li>
<li><code class="module"><a href="../mod/mod_negotiation.html">mod_negotiation</a></code></li>
</ul>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="RemoveCharset" id="RemoveCharset">RemoveCharset</a> <a name="removecharset" id="removecharset">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>ファイルの橙磨灰に簇息烧けられたすべての矢机セット
を豺近する</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>RemoveCharset <var>extension</var> [<var>extension</var>]
...</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>バ〖チャルホスト, ディレクトリ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">惧今き:</a></th><td>FileInfo</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>ベ〖ス</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_mime</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">高垂拉:</a></th><td>2.0.24 笆惯で蝗脱材墙</td></tr>
</table>
<p><code class="directive">RemoveCharset</code> ディレクティブ
は涂えられた橙磨灰に簇息烧けられた矢机セットを艰り久します。
これにより、サブディレクトリにある <code>.htaccess</code>
ファイルが科ディレクトリやサ〖バの肋年ファイル
から费镜した簇息烧けを艰り久すことができます。毋えば:</p>
<p><var>extension</var> は络矢机井矢机を惰侍しません。
また、呵介のドットはあってもなくても菇いません。</p>
<div class="example"><h3>毋</h3><p><code>
RemoveCharset .html .shtml
</code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="RemoveEncoding" id="RemoveEncoding">RemoveEncoding</a> <a name="removeencoding" id="removeencoding">ディレクティブ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>ファイルの橙磨灰に簇息烧けられたすべてのコンテントエンコ〖ディング
を豺近する</td></tr>
<tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>RemoveEncoding <var>extension</var> [<var>extension</var>]
...</code></td></tr>
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>バ〖チャルホスト, ディレクトリ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">惧今き:</a></th><td>FileInfo</td></tr>
<tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>ベ〖ス</td></tr>
<tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_mime</td></tr>
</table>
<p><code class="directive">RemoveEncoding</code> ディレクティブは、
涂えられた橙磨灰に簇息烧けられたエンコ〖ディングを艰り久します。
これにより、サブディレクトリにある <code>.htaccess</code>
ファイルが科ディレクトリやサ〖バの肋年ファイルから费镜した簇息烧けを
艰り久すことができます。</p>
<div class="example"><h3>/foo/.htaccess:</h3><p><code>
AddEncoding x-gzip .gz<br />
AddType text/plain .asc<br />
<Files *.gz.asc><br />
<span class="indent">
RemoveEncoding .gz<br />
</span>
</Files>
</code></p></div>
<p>これは、<code>foo.gz</code> は gzip
でエンコ〖ドされていることを回年しますが、<code>foo.gz.asc</code>
はエンコ〖ドされていないプレ〖ンテキストの
ファイルであるということを回年します。</p>
<div class="note"><h3>庙罢</h3>
<p><code class="directive">RemoveEncoding</code> は
<code class="directive"><a href="#addencoding">AddEncoding</a></code>
ディレクティブの<em>稿</em>で借妄されますので、
票じディレクトリの肋年面に尉数が附れると、
稿荚の跟蔡が虑ち久される材墙拉があります。</p>
</div>
<p><var>extension</var> は络矢机井矢机を惰侍しません。
また、呵介のドットはあってもなくても菇いません。</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -