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 7 --> 8<title>mod_env - 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" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" /> 12<script src="/style/scripts/prettify.js" type="text/javascript"> 13</script> 14 15<link href="/images/favicon.ico" rel="shortcut icon" /></head> 16<body> 17<div id="page-header"> 18<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> 19<p class="apache">Apache HTTP サーバ バージョン 2.2</p> 20<img alt="" src="/images/feather.gif" /></div> 21<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div> 22<div id="path"> 23<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> 24<div id="page-content"> 25<div id="preamble"><h1>Apache モジュール mod_env</h1> 26<div class="toplang"> 27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_env.html" hreflang="en" rel="alternate" title="English"> en </a> | 28<a href="/ja/mod/mod_env.html" title="Japanese"> ja </a> | 29<a href="/ko/mod/mod_env.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 30<a href="/tr/mod/mod_env.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> 31</div> 32<div class="outofdate">この日本語訳はすでに古くなっている 33 可能性があります。 34 最近更新された内容を見るには英語版をご覧下さい。 35 </div> 36<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>CGI スクリプト及び SSI 37ページに渡される環境変数を変更する機能を提供する</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>env_module</td></tr> 40<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_env.c</td></tr></table> 41<h3>概要</h3> 42 43 <p>このモジュールにより CGI スクリプトと SSI 44 ページに適用される環境変数を制御することができるようになります。 45 環境変数は <code class="program"><a href="/programs/httpd.html">httpd</a></code> プロセスを起動したシェルから渡されます。また、 46 設定ファイルで環境変数を設定したり、削除したりすることができます。 47 </p> 48</div> 49<div id="quickview"><h3 class="directives">ディレクティブ</h3> 50<ul id="toc"> 51<li><img alt="" src="/images/down.gif" /> <a href="#passenv">PassEnv</a></li> 52<li><img alt="" src="/images/down.gif" /> <a href="#setenv">SetEnv</a></li> 53<li><img alt="" src="/images/down.gif" /> <a href="#unsetenv">UnsetEnv</a></li> 54</ul> 55<h3>参照</h3> 56<ul class="seealso"> 57<li><a href="/env.html">環境変数</a></li> 58</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> 59 60<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 61<div class="directive-section"><h2><a name="PassEnv" id="PassEnv">PassEnv</a> <a name="passenv" id="passenv">ディレクティブ</a></h2> 62<table class="directive"> 63<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>シェルからの環境変数を渡す</td></tr> 64<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>PassEnv <var>env-variable</var> [<var>env-variable</var>] 65...</code></td></tr> 66<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr> 67<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>FileInfo</td></tr> 68<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 69<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_env</td></tr> 70</table> 71 72 <p><code class="program"><a href="/programs/httpd.html">httpd</a></code> プロセスを起動したシェルの環境から CGI スクリプトと 73 SSI ページに渡す環境変数を一つ以上指定します。</p> 74 75 <div class="example"><h3>例</h3><p><code> 76 PassEnv LD_LIBRARY_PATH 77 </code></p></div> 78 79</div> 80<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 81<div class="directive-section"><h2><a name="SetEnv" id="SetEnv">SetEnv</a> <a name="setenv" id="setenv">ディレクティブ</a></h2> 82<table class="directive"> 83<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>環境変数を設定する</td></tr> 84<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>SetEnv <var>env-variable</var> <var>value</var></code></td></tr> 85<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr> 86<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>FileInfo</td></tr> 87<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 88<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_env</td></tr> 89</table> 90 <p>環境変数を設定し、それを CGI スクリプトと SSI 91 ページに渡すようにします。</p> 92 93 <div class="example"><h3>例</h3><p><code> 94 SetEnv SPECIAL_PATH /foo/bin 95 </code></p></div> 96 97</div> 98<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 99<div class="directive-section"><h2><a name="UnsetEnv" id="UnsetEnv">UnsetEnv</a> <a name="unsetenv" id="unsetenv">ディレクティブ</a></h2> 100<table class="directive"> 101<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>環境から変数を取り除く</td></tr> 102<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>UnsetEnv <var>env-variable</var> [<var>env-variable</var>] 103...</code></td></tr> 104<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr> 105<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>FileInfo</td></tr> 106<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr> 107<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_env</td></tr> 108</table> 109 <p>CGI スクリプトと SSI 110 ページに渡される環境変数から指定された環境変数を取り除きます。</p> 111 112 <div class="example"><h3>例</h3><p><code> 113 UnsetEnv LD_LIBRARY_PATH 114 </code></p></div> 115 116</div> 117</div> 118<div class="bottomlang"> 119<p><span>翻訳済み言語: </span><a href="/en/mod/mod_env.html" hreflang="en" rel="alternate" title="English"> en </a> | 120<a href="/ja/mod/mod_env.html" title="Japanese"> ja </a> | 121<a href="/ko/mod/mod_env.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 122<a href="/tr/mod/mod_env.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> 123</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> 124<script type="text/javascript"><!--//--><![CDATA[//><!-- 125var comments_shortname = 'httpd'; 126var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_env.html'; 127(function(w, d) { 128 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 129 d.write('<div id="comments_thread"><\/div>'); 130 var s = d.createElement('script'); 131 s.type = 'text/javascript'; 132 s.async = true; 133 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 134 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 135 } 136 else { 137 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 138 } 139})(window, document); 140//--><!]]></script></div><div id="footer"> 141<p class="apache">Copyright 2013 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> 142<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[//><!-- 143if (typeof(prettyPrint) !== 'undefined') { 144 prettyPrint(); 145} 146//--><!]]></script> 147</body></html>