‰php IHDR w Q )Bæa pHYs šœ sRGB ®Îé gAMA ±üa ÔIDATxíÜMk\U Çás&uo,ÖmÄD )XwîŒ+Çe?‰ºtw.“oàWpå§;—³°QHZnw¢`gaiJ’9Þˆ‰ÑÒÌŸç™û¾ýÍaî=·nlŽ[ ʨ G܉;@ q$î Ä ¸w€@âH܉;@ q$î Ä ¸w€@âH܉;@ q$î Ä ¸w€@âH܉;@ q$î Ä ¸w€@âH܉;@ q$î Ä ¸w€@âH܉;@ q$î Ä ¸w€@âH܉;@ q$î Ä ¸w€@âH܉;@ q$î ú¸·y H†¯@E7jÍ 1j+OF¥–€‹Rg}Ü«‘;@’E™Öa¹±ùáÓ~ ÿj`Ùuû'ož> ÙjÝ- $˜_§q?¾q¸S XzG'åóay
files >> /opt/lampp/manual/ |
files >> //opt/lampp/manual/sections.html.ja.utf8 |
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>セクションã®è¨å®š - Apache HTTP サームãƒãƒ¼ã‚¸ãƒ§ãƒ³ 2.4</title> <link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <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" /> <script src="./style/scripts/prettify.min.js" type="text/javascript"> </script> <link href="./images/favicon.ico" rel="shortcut icon" /></head> <body id="manual-page"><div id="page-header"> <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> <p class="apache">Apache HTTP サームãƒãƒ¼ã‚¸ãƒ§ãƒ³ 2.4</p> <img alt="" src="./images/feather.gif" /></div> <div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> <div id="path"> <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.4</a></div><div id="page-content"><div id="preamble"><h1>セクションã®è¨å®š</h1> <div class="toplang"> <p><span>翻訳済ã¿è¨€èªž: </span><a href="./en/sections.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="./fr/sections.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="./ja/sections.html" title="Japanese"> ja </a> | <a href="./ko/sections.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | <a href="./tr/sections.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div> <div class="outofdate">ã“ã®æ—¥æœ¬èªžè¨³ã¯ã™ã§ã«å¤ããªã£ã¦ã„ã‚‹ å¯èƒ½æ€§ãŒã‚りã¾ã™ã€‚ 最近更新ã•れãŸå†…容を見るã«ã¯è‹±èªžç‰ˆã‚’ã”覧下ã•ã„。 </div> <p><a href="configuring.html">è¨å®šãƒ•ァイル</a>ä¸ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–㯠サーãƒå…¨ä½“ã«é©ç”¨ã•れãŸã‚Šã€ç‰¹å®šã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚„ファイルã€ãƒ›ã‚¹ãƒˆã€URL ã«ã®ã¿ é©ç”¨ã•れるよã†ã«åˆ¶é™ã—ãŸã‚Šã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ã“ã®æ–‡æ›¸ã¯è¨å®šç”¨ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã® コンテナや <code>.htaccess</code> ファイルを使ã£ã¦ä»–ã®è¨å®šãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–㮠スコープを変更ã™ã‚‹æ–¹æ³•を説明ã—ã¾ã™ã€‚</p> </div> <div id="quickview"><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#types">è¨å®šç”¨ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚³ãƒ³ãƒ†ãƒŠã®ç¨®é¡ž</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#file-and-web">ファイルシステムã¨ã‚¦ã‚§ãƒ–空間</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#virtualhost">ãƒãƒ¼ãƒãƒ£ãƒ«ãƒ›ã‚¹ãƒˆ</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#proxy">プãƒã‚¯ã‚·</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#whatwhere">ã©ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ãŒä½¿ãˆã‚‹ã®?</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#mergin">セクションã®ãƒžãƒ¼ã‚¸æ–¹æ³•</a></li> </ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> <div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="types" id="types">è¨å®šç”¨ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚³ãƒ³ãƒ†ãƒŠã®ç¨®é¡ž</a></h2> <table class="related"><tr><th>関連モジュール</th><th>関連ディレクティブ</th></tr><tr><td><ul><li><code class="module"><a href="./mod/core.html">core</a></code></li><li><code class="module"><a href="./mod/mod_version.html">mod_version</a></code></li><li><code class="module"><a href="./mod/mod_proxy.html">mod_proxy</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/core.html#directory"><Directory></a></code></li><li><code class="directive"><a href="./mod/core.html#directorymatch"><DirectoryMatch></a></code></li><li><code class="directive"><a href="./mod/core.html#files"><Files></a></code></li><li><code class="directive"><a href="./mod/core.html#filesmatch"><FilesMatch></a></code></li><li><code class="directive"><a href="./mod/core.html#ifdefine"><IfDefine></a></code></li><li><code class="directive"><a href="./mod/core.html#ifmodule"><IfModule></a></code></li><li><code class="directive"><a href="./mod/mod_version.html#ifversion"><IfVersion></a></code></li><li><code class="directive"><a href="./mod/core.html#location"><Location></a></code></li><li><code class="directive"><a href="./mod/core.html#locationmatch"><LocationMatch></a></code></li><li><code class="directive"><a href="./mod/mod_proxy.html#proxy"><Proxy></a></code></li><li><code class="directive"><a href="./mod/mod_proxy.html#proxymatch"><ProxyMatch></a></code></li><li><code class="directive"><a href="./mod/core.html#virtualhost"><VirtualHost></a></code></li></ul></td></tr></table> <p>コンテナã«ã¯äºŒã¤ã®åŸºæœ¬ã¨ãªã‚‹ç¨®é¡žãŒã‚りã¾ã™ã€‚ã»ã¨ã‚“ã©ã®ã‚³ãƒ³ãƒ†ãƒŠã¯ å„リクエストã«å¯¾ã—ã¦è©•価ã•れã¾ã™ã€‚ãã®å ´åˆã€ã‚³ãƒ³ãƒ†ãƒŠä¸ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–㯠コンテナã«ãƒžãƒƒãƒã™ã‚‹ãƒªã‚¯ã‚¨ã‚¹ãƒˆã«ã®ã¿é©ç”¨ã•れã¾ã™ã€‚一方〠<code class="directive"><a href="./mod/core.html#ifdefine"><IfDefine></a></code>, <code class="directive"><a href="./mod/core.html#ifmodule"><IfModule></a></code>, <code class="directive"><a href="./mod/mod_version.html#ifversion"><IfVersion></a></code> コンテナ㯠サーãƒã®èµ·å‹•時ã¨å†èµ·å‹•時ã«ã®ã¿è©•価ã•れã¾ã™ã€‚èµ·å‹•æ™‚ã«æ¡ä»¶ãŒçœŸã§ã‚れã°ã€ コンテナä¸ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã¯ã™ã¹ã¦ã®ãƒªã‚¯ã‚¨ã‚¹ãƒˆã«é©ç”¨ã•れã¾ã™ã€‚æ¡ä»¶ãŒ å½ã§ã‚れã°ã€ã‚³ãƒ³ãƒ†ãƒŠä¸ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã¯ç„¡è¦–ã•れã¾ã™ã€‚</p> <p><code class="directive"><a href="./mod/core.html#ifdefine"><IfDefine></a></code> ディレクティブ㯠<code class="program"><a href="./programs/httpd.html">httpd</a></code> コマンドラインã§é©åˆ‡ãªãƒ‘ラメータãŒå®šç¾©ã•れãŸã¨ãã«ã®ã¿ é©ç”¨ã•れるディレクティブを囲ã„ã¾ã™ã€‚例ãˆã°æ¬¡ã®è¨å®šã§ã¯ã€ã‚µãƒ¼ãƒãŒ <code>httpd -DClosedForNow</code> を使ã£ã¦èµ·å‹•ã•れãŸã¨ãã ã‘ã™ã¹ã¦ã® リクエストを別ã®ã‚µã‚¤ãƒˆã«ãƒªãƒ€ã‚¤ãƒ¬ã‚¯ãƒˆã—ã¾ã™:</p> <div class="example"><p><code> <IfDefine ClosedForNow><br /> Redirect / http://otherserver.example.com/<br /> </IfDefine> </code></p></div> <p><code class="directive"><a href="./mod/core.html#ifmodule"><IfModule></a></code> 㯠éžå¸¸ã«ä¼¼ã¦ã„ã¾ã™ãŒã€ä»£ã‚りã«ã‚µãƒ¼ãƒä¸Šã§ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ãŒä½¿ç”¨å¯èƒ½ãªå ´åˆã«ã®ã¿ é©ç”¨å¯èƒ½ãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–を囲ã„ã¾ã™ã€‚モジュールã¯ã‚µãƒ¼ãƒã« é™çš„ã«çµ„ã¿è¾¼ã¾ã‚Œã¦ã„ã‚‹ã‹ã€å‹•çš„ã«çµ„ã¿è¾¼ã‚€ã‚ˆã†ã«ãªã£ã¦ã„ã¦ã€è¨å®šãƒ•ァイルä¸ã§ <code class="directive"><a href="./mod/mod_so.html#loadmodule">LoadModule</a></code> ã®è¡ŒãŒã‚ˆã‚Šå‰ã® éƒ¨åˆ†ã«æ›¸ã‹ã‚Œã¦ã„ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã¯ç‰¹å®šã®ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ã® å˜åœ¨ã«é–¢ã‚らãšè¨å®šãƒ•ァイルãŒå‹•作ã™ã‚‹å¿…è¦ãŒã‚ã‚‹å ´åˆã«ã®ã¿ä½¿ã£ã¦ãã ã•ã„。 常ã«å‹•作ã—ã¦æ¬²ã—ã„ディレクティブを囲むãŸã‚ã«ä½¿ã†ã¹ãã§ã¯ã‚りã¾ã›ã‚“。 å˜åœ¨ã—ãªã„モジュールã«é–¢ã™ã‚‹æœ‰ç”¨ãªã‚¨ãƒ©ãƒ¼ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã®ç™ºç”Ÿã‚’抑制ã—ã¦ã—ã¾ã„ã¾ã™ã®ã§ã€‚ </p> <p>次ã®ä¾‹ã§ã¯ã€<code class="module"><a href="./mod/mod_mime_magic.html">mod_mime_magic</a></code> ãŒã‚ã‚‹ã¨ãã«ã®ã¿ <code class="directive"><a href="./mod/mod_mime_magic.html#mimemagicfiles">MimeMagicFiles</a></code> ディレクティブ㌠é©ç”¨ã•れã¾ã™ã€‚</p> <div class="example"><p><code> <IfModule mod_mime_magic.c><br /> MimeMagicFile conf/magic<br /> </IfModule> </code></p></div> <p><code class="directive"><a href="./mod/mod_version.html#ifversion"><IfVersion></a></code> ディレクティブ㯠<code class="directive"><a href="./mod/core.html#ifdefine"><IfDefine></a></code> ã‚„ <code class="directive"><a href="./mod/core.html#ifmodule"><IfModule></a></code>ã¨ã€ ã¨ã¦ã‚‚よãä¼¼ã¦ã„ã¾ã™ãŒã€ç¨¼åƒä¸ã®ã‚µãƒ¼ãƒã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãŒç‰¹å®šã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã®æ™‚ã«ã®ã¿ é©ç”¨ã•れã¾ã™ã€‚様々ãªãƒãƒ¼ã‚¸ãƒ§ãƒ³ã® httpd を様々ãªè¨å®šã§å‹•作ã•ã›ã‚‹ã“ã¨ã«ãªã‚‹å ´åˆã§ã€ テストスイートや巨大ãªãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ã§ã®ç”¨é€”を想定ã—ã¦ã€ ã“ã®ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ã¯è¨è¨ˆã•れã¦ã„ã¾ã™ã€‚</p> <div class="example"><p><code> <IfVersion >= 2.1><br /> <span class="indent"> # this happens only in versions greater or<br /> # equal 2.1.0.<br /> </span> </IfVersion> </code></p></div> <p><code class="directive"><a href="./mod/core.html#ifdefine"><IfDefine></a></code>, <code class="directive"><a href="./mod/core.html#ifmodule"><IfModule></a></code>, <code class="directive"><a href="./mod/mod_version.html#ifversion"><IfVersion></a></code> ディレクティブ㯠テストã®å‰ã« "!" を付ã‘ã‚‹ã“ã¨ã§å¦å®šã®æ¡ä»¶ã‚’é©ç”¨ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ ã¾ãŸã€ã“れらã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã¯ã‚ˆã‚Šè¤‡é›‘ãªåˆ¶é™ã‚’課ã™ãŸã‚ã«å…¥ã‚Œåã«ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚ </p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="file-and-web" id="file-and-web">ファイルシステムã¨ã‚¦ã‚§ãƒ–空間</a></h2> <p>最もよã使ã‚れるè¨å®šã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚³ãƒ³ãƒ†ãƒŠã¯ãƒ•ァイルシステムやウェブ空間㮠特定ã®å ´æ‰€ã®è¨å®šã‚’変更ã™ã‚‹ã‚‚ã®ã§ã™ã€‚ã¾ãšã€ã“ã®äºŒã¤ã®é•ã„ã‚’ç†è§£ã™ã‚‹ã“ã¨ãŒ 大切ã§ã™ã€‚ファイルシステムã¯ã‚ªãƒšãƒ¬ãƒ¼ãƒ†ã‚£ãƒ³ã‚°ã‚·ã‚¹ãƒ†ãƒ ã‹ã‚‰è¦‹ãŸãƒ‡ã‚£ã‚¹ã‚¯ã®å†…容ã§ã™ã€‚ ãŸã¨ãˆã°ã€ãƒ‡ãƒ•ォルトã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã§ã¯ Apache 㯠Unix ファイルシステムã§ã¯ <code>/usr/local/apache2</code> ã«ã€Windows ファイルシステムã§ã¯ <code>"c:/Program Files/Apache Group/Apache2"</code> ã«å˜åœ¨ã—ã¾ã™ã€‚ (Apache ã§ã¯ Windows ã§ã‚‚パスセパレータã¨ã—ã¦ã‚¹ãƒ©ãƒƒã‚·ãƒ¥ã‚’使ã†ã“ã¨ã« æ°—ã‚’ã¤ã‘ã¦ãã ã•ã„。) 対照的ã«ã€ã‚¦ã‚§ãƒ–空間ã¯ã‚ãªãŸã®ã‚µã‚¤ãƒˆã‚’ ウェブサーãƒã‹ã‚‰é…ä¿¡ã•れるもã®ã¨ã—ã¦è¦‹ãŸã‚‚ã®ã§ã€ã‚¯ãƒ©ã‚¤ã‚¢ãƒ³ãƒˆã«è¦‹ãˆã‚‹ã‚‚ã®ã§ã™ã€‚ デフォルト㮠Unix 上㮠Apache ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã§ã¯ã‚¦ã‚§ãƒ–空間㮠<code>/dir/</code> ã¨ã„ã†ãƒ‘スã¯ãƒ•ァイルシステム㮠<code>/usr/local/apache2/htdocs/dir/</code> ã¨ã„ã†ãƒ‘スã«å¯¾å¿œã—ã¾ã™ã€‚ ウェブページã¯ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚„ä»–ã®å ´æ‰€ã‹ã‚‰å‹•çš„ã«ç”Ÿæˆã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã®ã§ã€ ウェブ空間ã¯ãƒ•ァイルシステムã«ç›´æŽ¥ãƒžãƒƒãƒ—ã™ã‚‹å¿…è¦ã¯ã‚りã¾ã›ã‚“。</p> <h3><a name="filesystem" id="filesystem">ファイルシステムコンテナ</a></h3> <p><code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> ディレクティブ㨠<code class="directive"><a href="./mod/core.html#files"><Files></a></code> ディレクティブã€ãれ㨠ãã‚Œã‚‰ã®æ£è¦è¡¨ç¾ç‰ˆã¯ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–をファイルシステムã®ä¸€éƒ¨åˆ†ã«å¯¾ã—ã¦é©ç”¨ã—ã¾ã™ã€‚ <code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> セクション㮠ä¸ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã¯æŒ‡å®šã•れãŸãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¨ãã®ã™ã¹ã¦ã®ã‚µãƒ–ディレクトリ㫠é©ç”¨ã•れã¾ã™ã€‚<a href="howto/htaccess.html">.htaccess ファイル</a>ã‚’ 使ã†ã“ã¨ã§ã‚‚åŒã˜åŠ¹æžœã‚’å¾—ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚例ãˆã°ã€æ¬¡ã®è¨å®šã§ã¯ <code>/var/web/dir1</code> ã¨ã™ã¹ã¦ã®ã‚µãƒ–ディレクトリã«å¯¾ã—㦠ディレクトリインデックスを行ãªã„ã¾ã™ã€‚</p> <div class="example"><p><code> <Directory /var/web/dir1><br /> Options +Indexes<br /> </Directory> </code></p></div> <p><code class="directive"><a href="./mod/core.html#files"><Files></a></code> セクション㮠ä¸ã«ã‚るディレクティブã¯ã©ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ã‚ã‚‹ã‹ã«é–¢ã‚らãšã€æŒ‡å®šã•れãŸåå‰ã® ã™ã¹ã¦ã®ãƒ•ァイルã«é©ç”¨ã•れã¾ã™ã€‚ã§ã™ã‹ã‚‰ä¾‹ãˆã°ä»¥ä¸‹ã®è¨å®šãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–㌠è¨å®šãƒ•ァイルã®ä¸»ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã«æ›¸ã‹ã‚ŒãŸã¨ãã«ã¯ã€ã™ã¹ã¦ã®å ´æ‰€ã® <code>private.html</code> ã¨ã„ã†åå‰ã®ãƒ•ァイルã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã‚’æ‹’å¦ã—ã¾ã™ã€‚</p> <div class="example"><p><code> <Files private.html><br /> Order allow,deny<br /> Deny from all<br /> </Files> </code></p></div> <p>ファイルシステムã®ç‰¹å®šã®å ´æ‰€ã«ã‚るファイルを指定ã™ã‚‹ãŸã‚ã«ã€ <code class="directive"><a href="./mod/core.html#files"><Files></a></code> セクション㨠<code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> セクションを 組ã¿åˆã‚ã›ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚例ãˆã°ã€æ¬¡ã®è¨å®šã§ã¯ <code>/var/web/dir1/private.html</code>, <code>/var/web/dir1/subdir2/private.html</code>, <code>/var/web/dir1/subdir3/private.html</code> ãªã©ã€ <code>/var/web/dir1/</code> ディレクトリã®ä¸‹ã«ã‚ã‚‹ã™ã¹ã¦ã® <code>private.html</code> ã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã‚’æ‹’å¦ã—ã¾ã™ã€‚</p> <div class="example"><p><code> <Directory /var/web/dir1><br /> <Files private.html><br /> Order allow,deny<br /> Deny from all<br /> </Files><br /> </Directory> </code></p></div> <h3><a name="webspace" id="webspace">ウェブ空間コンテナ</a></h3> <p>一方ã€<code class="directive"><a href="./mod/core.html#location"><Location></a></code> ディレクティブã¨ãã®<a class="glossarylink" href="./glossary.html#regex" title="用語集をå‚ç…§">æ£è¦è¡¨ç¾</a>版㯠ウェブ空間上ã®å†…容ã«å¯¾ã—ã¦è¨å®šã‚’変更ã—ã¾ã™ã€‚ ãŸã¨ãˆã°ã€æ¬¡ã®è¨å®šã§ã¯ /private ã§å§‹ã¾ã‚‹ URL パスã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã‚’制é™ã—ã¾ã™ã€‚ 具体的ã«ã¯ã€ <code>http://yoursite.example.com/private</code>, <code>http://yoursite.example.com/private123</code>, <code>http://yoursite.example.com/private/dir/file.html</code> ã¸ã®ãƒªã‚¯ã‚¨ã‚¹ãƒˆã‚„〠他ã®åŒæ§˜ã« <code>/private</code> æ–‡å—列ã§å§‹ã¾ã‚‹ãƒªã‚¯ã‚¨ã‚¹ãƒˆã« é©ç”¨ã•れã¾ã™ã€‚</p> <div class="example"><p><code> <Location /private><br /> Order Allow,Deny<br /> Deny from all<br /> </Location> </code></p></div> <p><code class="directive"><a href="./mod/core.html#location"><Location></a></code> ディレクティブã¯ãƒ•ァイルシステムã¨é–¢ä¿‚ã‚ã‚‹å¿…è¦ãŒå…¨ãã‚りã¾ã›ã‚“。 ãŸã¨ãˆã°æ¬¡ã®ä¾‹ã§ã¯ã€ã©ã®ã‚ˆã†ã«ã—ã¦ç‰¹å®šã® URL ã‚’ <code class="module"><a href="./mod/mod_status.html">mod_status</a></code>ã§æä¾›ã•れã¦ã„ã‚‹ Apache 内部ãƒãƒ³ãƒ‰ãƒ©ã«ãƒžãƒƒãƒ—ã™ã‚‹ã‹ã‚’示ã—ã¦ã„ã¾ã™ã€‚ファイルシステム㫠<code>server-status</code> ã¨ã„ã†ãƒ•ァイルãŒå˜åœ¨ã™ã‚‹å¿…è¦ã¯ã‚りã¾ã›ã‚“。</p> <div class="example"><p><code> <Location /server-status><br /> SetHandler server-status<br /> </Location> </code></p></div> <h3><a name="wildcards" id="wildcards">ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰ã¨æ£è¦è¡¨ç¾</a></h3> <p><code class="directive"><a href="./mod/core.html#directory"><Directory></a></code>, <code class="directive"><a href="./mod/core.html#files"><Files></a></code>, <code class="directive"><a href="./mod/core.html#location"><Location></a></code> ディレクティブã§ã¯ã€ C 標準ライブラリ㮠<code>fnmatch</code> ã®ã‚ˆã†ã« shell スタイルã®ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰ã‚ャラクタãŒä½¿ç”¨ã§ãã¾ã™ã€‚ "*" æ–‡å—ã¯ä»»æ„ã®æ–‡å—列ã«ãƒžãƒƒãƒã—ã€"?" æ–‡å—ã¯ä»»æ„ã® 1 æ–‡å—ã«ãƒžãƒƒãƒã—〠"[<em>seq</em>]" 㯠<em>seq</em> ã®ä»»æ„ã®æ–‡å—ã«ãƒžãƒƒãƒã—ã¾ã™ã€‚ "/" æ–‡å—ã¯ã©ã®ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰ã§ã‚‚マッãƒã•れã¾ã›ã‚“。 æ˜Žç¤ºçš„ã«æŒ‡å®šã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚</p> <p>ã“れより柔軟ãªãƒžãƒƒãƒãƒ³ã‚°ãŒå¿…è¦ãªå ´åˆã¯ã€ã“れらã®ã‚³ãƒ³ãƒ†ãƒŠã«æ£è¦è¡¨ç¾ (regex) 版ã§ã‚ã‚‹ <code class="directive"><a href="./mod/core.html#directorymatch"><DirectoryMatch></a></code>, <code class="directive"><a href="./mod/core.html#filesmatch"><FilesMatch></a></code>, <code class="directive"><a href="./mod/core.html#locationmatch"><LocationMatch></a></code> ãŒã‚りã€ãƒžãƒƒãƒã‚’é¸æŠžã™ã‚‹ã®ã« perl 互æ›<a class="glossarylink" href="./glossary.html#regex" title="用語集をå‚ç…§">æ£è¦è¡¨ç¾</a>を使用ã§ãã¾ã™ã€‚ã—ã‹ã—ã€æ¬¡ã®è¨å®šã®ãƒžãƒ¼ã‚¸ã«ç›®ã‚’通ã—ã¦ã€ regex セクションを使用ã™ã‚‹ã“ã¨ã§ã€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã®é©ç”¨ãŒã©ã®ã‚ˆã†ã« 変化ã™ã‚‹ã‹æŠŠæ¡ã—ã¦ãŠã„ã¦ãã ã•ã„。</p> <p>全ユーザディレクトリã®è¨å®šã‚’変更ã™ã‚‹ã€éž regex ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã¯æ¬¡ã®ã‚ˆã†ã«ãªã‚Šã¾ã™ã€‚</p> <div class="example"><p><code> <Directory /home/*/public_html><br /> Options Indexes<br /> </Directory> </code></p></div> <p>regex セクションを使用ã™ã‚‹ã“ã¨ã§ã€ç”»åƒãƒ•ァイルã®å¤šãã®ã‚¿ã‚¤ãƒ—ã«å¯¾ã™ã‚‹ ã‚¢ã‚¯ã‚»ã‚¹ã‚’ä¸€åº¦ã«æ‹’å¦ã§ãã¾ã™ã€‚</p> <div class="example"><p><code> <FilesMatch \.(?i:gif|jpe?g|png)$><br /> Order allow,deny<br /> Deny from all<br /> </FilesMatch> </code></p></div> <h3><a name="whichwhen" id="whichwhen">ã„ã¤ä½•を使ã†ã‹</a></h3> <p>ファイルシステムコンテナã¨ã‚¦ã‚§ãƒ–空間コンテナを使ã„分ã‘ã‚‹ã®ã¯ã€ 実際ã«ã¯éžå¸¸ã«ç°¡å˜ã§ã™ã€‚ファイルシステムã«ä¾å˜ã™ã‚‹ オブジェクトã«ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã‚’é©å¿œã™ã‚‹å ´åˆã¯ã€å¿…ãš <code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> ã‹ <code class="directive"><a href="./mod/core.html#files"><Files></a></code> を使用ã—ã¾ã™ã€‚ファイルシステムã«ä¾å˜ã—ãªã„オブジェクト (データベースã‹ã‚‰ç”Ÿæˆã•れるウェブページãªã©) ã«ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã‚’é©ç”¨ã™ã‚‹éš›ã«ã¯ã€ <code class="directive"><a href="./mod/core.html#location"><Location></a></code> を使用ã—ã¾ã™ã€‚</p> <p>ファイルシステム上ã®ã‚ªãƒ–ジェクトã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã‚’制é™ã™ã‚‹ãŸã‚ã«ã€ <code class="directive"><a href="./mod/core.html#location"><Location></a></code> を決ã—ã¦ä½¿ç”¨ãªã„よã†ã«ã—ã¾ã—ょã†ã€‚ åŒä¸€ã®ãƒ•ァイルシステムä½ç½®ã«ãƒžãƒƒãƒ—ã—ã¦ã„ã‚‹ã€ã‚¦ã‚§ãƒ–空間ä½ç½® (URL) ãŒå¤šæ•°ã‚ã£ã¦ã€è¨å®šã—ãŸåˆ¶é™ã‚’迂回ã•れã¦ã—ã¾ã†ã‹ã‚‚ã—れãªã„ã‹ã‚‰ã§ã™ã€‚ 例ãˆã°æ¬¡ã®è¨å®šã‚’考ãˆã¦ã¿ã¾ã—ょã†ã€‚</p> <div class="example"><p><code> <Location /dir/><br /> Order allow,deny<br /> Deny from all<br /> </Location> </code></p></div> <p><code>http://yoursite.example.com/dir/</code> ã¸ã®ãƒªã‚¯ã‚¨ã‚¹ãƒˆã§ã¯ä¸Šæ‰‹ã動作ã—ã¾ã™ã€‚ã—ã‹ã—大文å—å°æ–‡å—を区別ã—ãªã„ ファイルシステムを使ã£ã¦ã„ãŸã‚‰ã©ã†ãªã‚‹ã§ã—ょã†? <code>http://yoursite.example.com/DIR/</code> ã¸ã®ãƒªã‚¯ã‚¨ã‚¹ãƒˆã§ç°¡å˜ã«ã‚¢ã‚¯ã‚»ã‚¹åˆ¶é™ã‚’迂回ã•れã¦ã—ã¾ã„ã¾ã™ã€‚ã“れã«å¯¾ã—㦠<code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> ディレクティブを使用ã™ã‚‹ã¨ã€ã©ã®ã‚ˆã†ã«å‘¼ã³å‡ºã•れãŸã‹ã«é–¢ã‚ら㚠ãã®å ´æ‰€ã‹ã‚‰æä¾›ã•れる内容ã«é©ç”¨ã•れã¾ã™ã€‚ (例外ã¯ãƒ•ァイルシステムã®ãƒªãƒ³ã‚¯ã§ã™ã€‚シンボリックリンクを使ã£ã¦ã€ åŒä¸€ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’複数ã®ãƒ•ァイルシステムã«è¨ç½®ã§ãã¾ã™ã€‚ <code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> ディレクティブã¯ãƒ‘スåをリセットã™ã‚‹ã“ã¨ãªãシンボリックリンクを 辿りã¾ã™ã€‚ã§ã™ã‹ã‚‰ã€é«˜åº¦ãªã‚»ã‚ュリティãŒè¦æ±‚ã•ã‚Œã‚‹å ´åˆã¯ã€ é©åˆ‡ã« <code class="directive"><a href="./mod/core.html#options">Options</a></code> ディレクティブを使用ã—ã¦ã‚·ãƒ³ãƒœãƒªãƒƒã‚¯ãƒªãƒ³ã‚¯ã‚’無効ã«ã™ã‚‹ã¹ãã§ã™ã€‚)</p> <p>大文å—å°æ–‡å—を区別ã™ã‚‹ãƒ•ァイルシステムを使用ã—ã¦ã„ã‚‹ã‹ã‚‰ä¸Šè¨˜ã®ã“ã¨ã¯ 無関係ã ã¨æ€ã‚れるã‹ã‚‚ã—れã¾ã›ã‚“ãŒã€ åŒä¸€ã®ãƒ•ァイルシステムä½ç½®ã«è¤‡æ•°ã®ã‚¦ã‚§ãƒ–空間ä½ç½®ã‚’マップã™ã‚‹æ–¹æ³•ã¯ã€ ä»–ã«ã„ãらã§ã‚‚ã‚ã‚‹ã¨ã„ã†ã“ã¨ã‚’覚ãˆã¦ã„ã¦ãã ã•ã„。 ã§ã™ã‹ã‚‰ã§ãã‚‹é™ã‚Šãƒ•ァイルシステムコンテナを使用ã—ã¦ãã ã•ã„。 ã—ã‹ã—ãªãŒã‚‰ä¸€ã¤ã ã‘例外ãŒã‚りã¾ã™ã€‚ <code><Location /></code> セクションã¯ã©ã‚“㪠URL ã«ã‚‚é–¢ã‚らãšé©ç”¨ã•れるã®ã§ã€å®Œå…¨ã«å®‰å…¨ã§ã™ã€‚</p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="virtualhost" id="virtualhost">ãƒãƒ¼ãƒãƒ£ãƒ«ãƒ›ã‚¹ãƒˆ</a></h2> <p><code class="directive"><a href="./mod/core.html#virtualhost"><VirtualHost></a></code> コンテナã¯ç‰¹å®šã®ãƒ›ã‚¹ãƒˆã«é©ç”¨ã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã‚’æ ¼ç´ã—ã¾ã™ã€‚ 一å°ã®ãƒžã‚·ãƒ³ã§è¤‡æ•°ã®ãƒ›ã‚¹ãƒˆã‚’ç•°ãªã‚‹è¨å®šã§æä¾›ã—ãŸã„ã¨ãã«æœ‰ç”¨ã§ã™ã€‚ 詳細ã«é–¢ã—ã¦ã¯<a href="vhosts/">ãƒãƒ¼ãƒãƒ£ãƒ«ãƒ›ã‚¹ãƒˆãƒ‰ã‚ュメント</a>ã‚’ ã”覧下ã•ã„。</p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="proxy" id="proxy">プãƒã‚¯ã‚·</a></h2> <p><code class="directive"><a href="./mod/mod_proxy.html#proxy"><Proxy></a></code> 㨠<code class="directive"><a href="./mod/mod_proxy.html#proxymatch"><ProxyMatch></a></code> コンテナã¯ã€ç‰¹å®šã® URL ã«ãƒžãƒƒãƒã™ã‚‹ <code class="module"><a href="./mod/mod_proxy.html">mod_proxy</a></code> プãƒã‚¯ã‚·ã‚µãƒ¼ãƒã‚’経由ã—ã¦ã‚¢ã‚¯ã‚»ã‚¹ã—ãŸã‚µã‚¤ãƒˆã«å¯¾ã—ã¦ã®ã¿é©ç”¨ã•れる è¨å®šãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã‚’æ ¼ç´ã—ã¾ã™ã€‚例ãˆã°æ¬¡ã®è¨å®šã¯ã€<code>cnn.com</code> ウェブサイトã«ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹ãŸã‚ã«ç”¨ã„られるプãƒã‚¯ã‚·ã‚µãƒ¼ãƒã‚’ 制é™ã—ã¾ã™ã€‚</p> <div class="example"><p><code> <Proxy http://cnn.com/*><br /> Order allow,deny<br /> Deny from all<br /> </Proxy> </code></p></div> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="whatwhere" id="whatwhere">ã©ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ãŒä½¿ãˆã‚‹ã®?</a></h2> <p>ã©ã®ã‚¿ã‚¤ãƒ—ã®è¨å®šã‚»ã‚¯ã‚·ãƒ§ãƒ³ã§ã©ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ãŒä½¿ç”¨ã§ãã‚‹ã‹ã¯ã€ ディレクティブ㮠<a href="mod/directive-dict.html#Context">Context</a> を見ã¦ãã ã•ã„。 <code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> ã§ä½¿ç”¨å¯èƒ½ãªã‚‚ã®ã¯å…¨ã¦ã€åŒæ§˜ã« <code class="directive"><a href="./mod/core.html#directorymatch"><DirectoryMatch></a></code>, <code class="directive"><a href="./mod/core.html#files"><Files></a></code>, <code class="directive"><a href="./mod/core.html#filesmatch"><FilesMatch></a></code>, <code class="directive"><a href="./mod/core.html#location"><Location></a></code>, <code class="directive"><a href="./mod/core.html#locationmatch"><LocationMatch></a></code>, <code class="directive"><a href="./mod/mod_proxy.html#proxy"><Proxy></a></code>, <code class="directive"><a href="./mod/mod_proxy.html#proxymatch"><ProxyMatch></a></code> セクションã§ä½¿ç”¨å¯èƒ½ã§ã™ã€‚ã—ã‹ã—ãªãŒã‚‰å¹¾ã¤ã‹ä¾‹å¤–ã‚‚å˜åœ¨ã—ã¾ã™ã€‚</p> <ul> <li><code class="directive"><a href="./mod/core.html#allowoverride">AllowOverride</a></code> ディレクティブ㯠<code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> セクションã§ã®ã¿ä½¿ç”¨å¯èƒ½ã§ã™ã€‚</li> <li><code>FollowSymLinks</code> 㨠<code>SymLinksIfOwnerMatch</code> ã® <code class="directive"><a href="./mod/core.html#options">Options</a></code> ã¯ã€ <code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> セクション㋠<code>.htaccess</code> ファイルã§ã®ã¿ä½¿ç”¨å¯èƒ½ã§ã™ã€‚</li> <li><code class="directive"><a href="./mod/core.html#options">Options</a></code> ディレクティブã¯ã€ <code class="directive"><a href="./mod/core.html#files"><Files></a></code> 㨠<code class="directive"><a href="./mod/core.html#filesmatch"><FilesMatch></a></code> セクションã§ã¯ä½¿ç”¨ã§ãã¾ã›ã‚“。</li> </ul> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="mergin" id="mergin">セクションã®ãƒžãƒ¼ã‚¸æ–¹æ³•</a></h2> <p>マージã®é †ç•ªã¯ä»¥ä¸‹ã®ã‚ˆã†ã«ãªã£ã¦ã„ã¾ã™:</p> <ol> <li><code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> (æ£è¦è¡¨ç¾ç„¡ã—) 㨠<code>.htaccess</code> ã‚’åŒæ™‚ã« (<code>.htaccess</code> ãŒè¨±å¯ã•れã¦ã„れã°ã€ãれ㌠<code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> を上書ãã—ã¾ã™) </li> <li><code class="directive"><a href="./mod/core.html#directorymatch"><DirectoryMatch></a></code> (㨠<code><Directory ~></code></li> <li><code class="directive"><a href="./mod/core.html#files"><Files></a></code> 㨠<code class="directive"><a href="./mod/core.html#filesmatch"><FilesMatch></a></code> ã‚’åŒæ™‚ã«</li> <li><code class="directive"><a href="./mod/core.html#location"><Location></a></code> 㨠<code class="directive"><a href="./mod/core.html#locationmatch"><LocationMatch></a></code> ã‚’åŒæ™‚ã«</li> </ol> <p><code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> 以外ã¯ã€ãれãžã‚Œã®ã‚°ãƒ«ãƒ¼ãƒ—ã¯è¨å®šãƒ•ァイルã«ç¾ã‚ŒãŸé †ç•ªã«å‡¦ç†ã•れã¾ã™ã€‚ <code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> (上ã®ã‚°ãƒ«ãƒ¼ãƒ— 1) ã¯ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãŒçŸã„ã‚‚ã®ã‹ã‚‰é•·ã„ã‚‚ã®ã¸ã¨å‡¦ç†ã•れã¾ã™ã€‚ã§ã™ã‹ã‚‰ã€ 例ãˆã° <code><Directory /var/web/dir1></code> 㯠<code><Directory /var/web/dir/subdir></code> ã®å‰ã«å‡¦ç†ã•れã¾ã™ã€‚複数㮠<code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> セクション㌠åŒã˜ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã« é©ç”¨ã•ã‚Œã‚‹å ´åˆã¯ã€è¨å®šãƒ•ァイルä¸ã®é †ç•ªã«å¾“ã£ã¦å‡¦ç†ã•れã¾ã™ã€‚ <code class="directive"><a href="./mod/core.html#include">Include</a></code> ã«ã‚ˆã£ã¦æŒ¿å…¥ã•れãŸè¨å®šã¯ 挿入ã—ã¦ã„るファイル㮠<code class="directive"><a href="./mod/core.html#include">Include</a></code> ディレクティブã®ä½ç½®ã«ã‚ã£ãŸã‹ã®ã‚ˆã†ã«æ‰±ã‚れã¾ã™ã€‚</p> <p><code class="directive"><a href="./mod/core.html#virtualhost"><VirtualHost></a></code> セクションä¸ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã¯ ãƒãƒ¼ãƒãƒ£ãƒ«ãƒ›ã‚¹ãƒˆã®å®šç¾©ã®å¤–å´ã®å¯¾å¿œã™ã‚‹ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã® <em>後</em>ã«é©ç”¨ã•れã¾ã™ã€‚ã“れã«ã‚ˆã‚Šãƒãƒ¼ãƒãƒ£ãƒ«ãƒ›ã‚¹ãƒˆãŒ メインã®ã‚µãƒ¼ãƒè¨å®šã‚’上書ãã§ãるよã†ãªã‚Šã¾ã™ã€‚</p> <p><code class="module"><a href="./mod/mod_proxy.html">mod_proxy</a></code> ã§ãƒªã‚¯ã‚¨ã‚¹ãƒˆãŒå‡¦ç†ã•ã‚Œã‚‹å ´åˆã¯ã€ 処ç†é †ç•ªã®ã†ã¡ã€<code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> コンテナã®éƒ¨åˆ†ãŒ <code class="directive"><a href="./mod/mod_proxy.html#proxy"><Proxy></a></code> コンテナã«å–ã£ã¦ä»£ã‚られã¾ã™ã€‚</p> <p>後ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ãŒå‰ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã®ã‚‚ã®ã‚’上書ãã—ã¾ã™ã€‚</p> <div class="note"><h3>技術メモ</h3> 実際ã«ã¯ã€åå‰ã‚’変æ›ã™ã‚‹æ®µéšŽ (URL をファイルåã«ãƒžãƒƒãƒ—ã™ã‚‹ãŸã‚ã« <code>Alias</code> ã‚„ <code>DocumentRoot</code> ãŒä½¿ç”¨ã•れるã¨ã“ã‚) ã®ç›´å‰ã« <code class="directive"><a href="./mod/core.html#location"><Location></a></code>/<code class="directive"><a href="./mod/core.html#locationmatch"><LocationMatch></a></code> ãŒè¡Œãªã‚れã¾ã™ã€‚ ã“れらをé©ç”¨ã—ãŸçµæžœã¯å¤‰æ›ãŒçµ‚ã‚ã£ãŸå¾Œã«å®Œå…¨ã«æ¨ã¦ã‚‰ã‚Œã¾ã™ã€‚ </div> <h3><a name="merge-examples" id="merge-examples">例</a></h3> <p>次ã¯ãƒžãƒ¼ã‚¸ã®é †ç•ªã‚’示ã™ãŸã‚ã®æ£æ„çš„ãªä¾‹ã«ãªã£ã¦ã„ã¾ã™ã€‚ リクエスト全ã¦ã«é©ç”¨ã•れるã¨ã—ã¦ã€æœ¬ä¾‹ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–㯠A > B > C > D > E ã®é †ç•ªã«é©ç”¨ã•れã¾ã™ã€‚</p> <div class="example"><p><code> <Location /><br /> E<br /> </Location><br /> <br /> <Files f.html><br /> D<br /> </Files><br /> <br /> <VirtualHost *><br /> <Directory /a/b><br /> B<br /> </Directory><br /> </VirtualHost><br /> <br /> <DirectoryMatch "^.*b$"><br /> C<br /> </DirectoryMatch><br /> <br /> <Directory /a/b><br /> A<br /> </Directory><br /> <br /> </code></p></div> <p>ã‚‚ã£ã¨å…·ä½“çš„ãªã€æ¬¡ã®ä¾‹ã‚’考ãˆã¦ã¿ã¾ã—ょã†ã€‚ <code class="directive"><a href="./mod/core.html#directory"><Directory></a></code> セクションã«è¨ç½®ã•れãŸã‚¢ã‚¯ã‚»ã‚¹åˆ¶é™ã«é–¢ã‚らãšã€ <code class="directive"><a href="./mod/core.html#location"><Location></a></code> ã‚»ã‚¯ã‚·ãƒ§ãƒ³ãŒæœ€å¾Œã«è©•価ã•れã¦ã€ã‚µãƒ¼ãƒã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã¯åˆ¶é™ã•れã¾ã›ã‚“。 è¨€ã„æ›ãˆã‚Œã°ã€ãƒžãƒ¼ã‚¸ã®é †ç•ªã¯é‡è¦ã§ã€æ³¨æ„ã—ã¦ä½¿ç”¨ã—ã¦ãã ã•ã„!</p> <div class="example"><p><code> <Location /><br /> Order deny,allow<br /> Allow from all<br /> </Location><br /> <br /> # Woops! This <Directory> section will have no effect<br /> <Directory /><br /> Order allow,deny<br /> Allow from all<br /> Deny from badguy.example.com<br /> </Directory> </code></p></div> </div></div> <div class="bottomlang"> <p><span>翻訳済ã¿è¨€èªž: </span><a href="./en/sections.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="./fr/sections.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="./ja/sections.html" title="Japanese"> ja </a> | <a href="./ko/sections.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | <a href="./tr/sections.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </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> <script type="text/javascript"><!--//--><![CDATA[//><!-- var comments_shortname = 'httpd'; var comments_identifier = 'http://httpd.apache.org/docs/2.4/sections.html'; (function(w, d) { if (w.location.hostname.toLowerCase() == "httpd.apache.org") { d.write('<div id="comments_thread"><\/div>'); var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); } else { d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); } })(window, document); //--><!]]></script></div><div id="footer"> <p class="apache">Copyright 2015 The Apache Software Foundation.<br />ã“ã®æ–‡æ›¸ã¯ <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> ã®ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ã§æä¾›ã•れã¦ã„ã¾ã™ã€‚.</p> <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[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); } //--><!]]></script> </body></html>ß yôÊá½~ŒorÀ5ÖJ™={þÁEÇêe¾uç£Qk ®•ᯘG{÷?ù»ã+—]üôçƒÉÍ×ןô?wûM3X^¶ÚæŒ>{´7Ù¾ì´Kã>èo²ÎnÝ\ÿªÊj¿y· ðR£õãg/î=ÞÿfúOçÖr·o×NVÊv¿ú~ÿY+ ü¿NGêu÷ø·Ã®›þë¹HWŠûyëwÆ[eQ¶Ê¨¾SÚbÖ>öÍËÇ þ³>ä}Gçmx[o[<ÞÚ{ðýŸÏ®_ÅïqF–ÚÛvM IEND®B`‚