‰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/howto/ |
files >> //opt/lampp/manual/howto/public_html.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> > <a href="./">How-To / ãƒãƒ¥ãƒ¼ãƒˆãƒªã‚¢ãƒ«</a></div><div id="page-content"><div id="preamble"><h1>ユーザ毎ã®ã‚¦ã‚§ãƒ–ディレクトリ</h1> <div class="toplang"> <p><span>翻訳済ã¿è¨€èªž: </span><a href="../en/howto/public_html.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../fr/howto/public_html.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../ja/howto/public_html.html" title="Japanese"> ja </a> | <a href="../ko/howto/public_html.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | <a href="../tr/howto/public_html.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div> <div class="outofdate">ã“ã®æ—¥æœ¬èªžè¨³ã¯ã™ã§ã«å¤ããªã£ã¦ã„ã‚‹ å¯èƒ½æ€§ãŒã‚りã¾ã™ã€‚ 最近更新ã•れãŸå†…容を見るã«ã¯è‹±èªžç‰ˆã‚’ã”覧下ã•ã„。 </div> <p>複数ã®ãƒ¦ãƒ¼ã‚¶ã®ã„るシステムã§ã¯ã€<code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> ディレクティブを使ã£ã¦ å„ユーザãŒãƒ›ãƒ¼ãƒ ディレクトリã«ã‚¦ã‚§ãƒ–サイトを構築ã§ãるよã†ã«è¨å®šã™ã‚‹ã“ã¨ãŒ å¯èƒ½ã§ã™ã€‚URL <code>http://example.com/~username/</code> を訪れãŸäººã¯ "<code>username</code>" ã¨ã„ã†ãƒ¦ãƒ¼ã‚¶ã® <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã§æŒ‡å®šã•れ㟠サブディレクトリã‹ã‚‰ã‚³ãƒ³ãƒ†ãƒ³ãƒ„ã‚’å¾—ã‚‹ã“ã¨ã«ãªã‚Šã¾ã™ã€‚</p> <p>in the default config file, and adapting the <code>httpd-userdir.conf</code> file as necessary, or by including the appropriate directives in a <code>Directory</code> block within the main config file.</p> <p>デフォルトã§ã¯ã“れらã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¸ã®ã‚¢ã‚¯ã‚»ã‚¹ã¯<strong>許å¯ã•れã¦ã„ã¾ã›ã‚“</strong>。 <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> を使ã£ã¦æœ‰åйã«ã§ãã¾ã™ã€‚ 有効ã«ã™ã‚‹ã«ã¯ã€ãƒ‡ãƒ•ォルトã®è¨å®šãƒ•ァイルã§ä»˜éšã™ã‚‹ <code>httpd-userdir.conf</code> ファイルãŒå¿…è¦ã§ã€ ãã®ä¸ã®æ¬¡ã®è¡Œã®ã‚³ãƒ¡ãƒ³ãƒˆã‚¢ã‚¦ãƒˆã‚’外ã—ã¦æœ‰åйã«ã™ã‚‹ã‹ã€ </p> <div class="example"><p><code> #Include conf/extra/httpd-userdir.conf </code></p></div> <p>ã‚ã‚‹ã„ã¯ã€ãƒ¡ã‚¤ãƒ³ã®è¨å®šãƒ•ァイルä¸ã® <code>Directory</code> ブãƒãƒƒã‚¯ã®ä¸ã«é©åˆ‡ã«ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–を記述ã—ã¦ãŠãã¾ã™ã€‚</p> </div> <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#related">ユーザ毎ã®ã‚¦ã‚§ãƒ–ディレクトリ</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#userdir">UserDir を使ã£ã¦ãƒ•ァイルã®ãƒ‘スをè¨å®šã™ã‚‹</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#redirect">外部 URL ã«ãƒªãƒ€ã‚¤ãƒ¬ã‚¯ãƒˆã™ã‚‹</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#enable">ã“ã®æ©Ÿèƒ½ã‚’使用ã§ãるユーザを制é™ã™ã‚‹</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#cgi">ユーザ毎㮠CGI ディレクトリ</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#htaccess">ユーザã«ã‚ˆã‚‹è¨å®šå¤‰æ›´ã‚’許å¯</a></li> </ul><h3>å‚ç…§</h3><ul class="seealso"><li><a href="../urlmapping.html">URL ã‹ã‚‰ãƒ•ァイルシステムã¸ã®ãƒžãƒƒãƒ”ング</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="related" id="related">ユーザ毎ã®ã‚¦ã‚§ãƒ–ディレクトリ</a></h2> <table class="related"><tr><th>関連モジュール</th><th>関連ディレクティブ</th></tr><tr><td><ul><li><code class="module"><a href="../mod/mod_userdir.html">mod_userdir</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</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#allowoverride">AllowOverride</a></code></li></ul></td></tr></table> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="userdir" id="userdir">UserDir を使ã£ã¦ãƒ•ァイルã®ãƒ‘スをè¨å®šã™ã‚‹</a></h2> <p><code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> ディレクティブ㯠ユーザ毎ã®ã‚³ãƒ³ãƒ†ãƒ³ãƒ„ãŒèªã¿è¾¼ã¾ã‚Œã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’指定ã—ã¾ã™ã€‚ ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã¯ã„ã‚ã„ã‚é•ã£ãŸå½¢å¼ã‚’å–ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚</p> <p>スラッシュã§å§‹ã¾ã‚‰ãªã„パスãŒä¸Žãˆã‚‰ã‚ŒãŸã¨ãã¯ã€ãƒ¦ãƒ¼ã‚¶ã®ãƒ›ãƒ¼ãƒ ディレクトリ ã‹ã‚‰ã®ç›¸å¯¾ãƒ‘スã¨ã¿ãªã•れã¾ã™ã€‚次ã®è¨å®šãŒã‚ã£ãŸã¨ãã«:</p> <pre class="prettyprint lang-config">UserDir public_html</pre> <p>URL <code>http://example.com/~rbowen/file.html</code> 㯠パス <code>/home/rbowen/public_html/file.html</code> 㸠変æ›ã•れã¾ã™ã€‚</p> <p>パスãŒã‚¹ãƒ©ãƒƒã‚·ãƒ¥ã§å§‹ã¾ã‚‹ã¨ãã¯ã€ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãƒ‘スã¯ãã®ãƒ‘ス㫠ユーザåã‚’åŠ ãˆãŸã‚‚ã®ã‹ã‚‰ãªã‚Šã¾ã™ã€‚次ã®è¨å®šã®ã¨ã:</p> <pre class="prettyprint lang-config">UserDir /var/html</pre> <p>URL <code>http://example.com/~rbowen/file.html</code> 㯠パス <code>/var/html/rbowen/file.html</code> ã¸å¤‰æ›ã•れã¾ã™ã€‚</p> <p>アスタリスク (*) ã‚’å«ã‚€ãƒ‘ã‚¹ãŒæŒ‡å®šã•れãŸã¨ãã¯ã€ã‚¢ã‚¹ã‚¿ãƒªã‚¹ã‚¯ã‚’ ユーザåã§ç½®æ›ã—ãŸã‚‚ã®ãŒä½¿ç”¨ã•れã¾ã™ã€‚ã“ã®ã‚ˆã†ãªè¨å®šã ã¨:</p> <pre class="prettyprint lang-config">UserDir /var/www/*/docs</pre> <p>URL <code>http://example.com/~rbowen/file.html</code> 㯠パス <code>/var/www/rbowen/docs/file.html</code> ã¸å¤‰æ›ã•れã¾ã™ã€‚</p> <p>ディレクトリやディレクトリパスを複数è¨å®šã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚</p> <pre class="prettyprint lang-config">UserDir public_html /var/html</pre> <p><code>http://example.com/~rbowen/file.html</code> ã¨ã„ㆠURL ã«å¯¾ã—ã¦ã¯ <code>~rbowen</code> を探ã—ã¾ã™ã€‚見ã¤ã‹ã‚‰ãªã‘れã°ã€ <code>/var/html</code> ã®ä¸‹ã«ã‚ã‚‹ <code>rbowen</code> を探ã—ã¾ã™ã€‚ ã‚‚ã—見ã¤ã‹ã‚Œã°ä¸Šè¨˜ã® URL 㯠<code>/var/html/rbowen/file.html</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="redirect" id="redirect">外部 URL ã«ãƒªãƒ€ã‚¤ãƒ¬ã‚¯ãƒˆã™ã‚‹</a></h2> <p><code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> ディレクティブを使ã£ã¦å¤–部 URL ã«ãƒªãƒ€ã‚¤ãƒ¬ã‚¯ãƒˆã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚</p> <pre class="prettyprint lang-config">UserDir http://example.org/users/*/</pre> <p>上記例ã§ã¯ <code>http://example.com/~bob/abc.html</code> ã¸ã®ãƒªã‚¯ã‚¨ã‚¹ãƒˆã¯ <code>http://example.org/users/bob/abc.html</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="enable" id="enable">ã“ã®æ©Ÿèƒ½ã‚’使用ã§ãるユーザを制é™ã™ã‚‹</a></h2> <p>UserDir ã®ãƒ‰ã‚ュメントã«ç¤ºã•れã¦ã„る構文を使ã†ã“ã¨ã§ã€ ã©ã®ãƒ¦ãƒ¼ã‚¶ãŒã“ã®æ©Ÿèƒ½ã‚’使ã†ã“ã¨ãŒã§ãã‚‹ã‹ã‚’制é™ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™:</p> <div class="example"><p><code> UserDir enabled<br /> UserDir disabled root jro fish </code></p></div> <p>上ã®è¨å®šã¯ <code>dissabled</code> æ–‡ã®ãƒ¦ãƒ¼ã‚¶ä»¥å¤–ã®ã™ã¹ã¦ã®ãƒ¦ãƒ¼ã‚¶ã« 対ã—㦠UserDir ã®æ©Ÿèƒ½ã‚’有効ã«ã—ã¾ã™ã€‚åŒæ§˜ã«ã—ã¦ã€ä»¥ä¸‹ã®ã‚ˆã†ã« æ•°åã®ãƒ¦ãƒ¼ã‚¶ä»¥å¤–ã«å¯¾ã—ã¦ã“ã®æ©Ÿèƒ½ã‚’無効ã«ã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™:</p> <pre class="prettyprint lang-config"> UserDir disabled<br /> UserDir enabled rbowen krietz</pre> <p>ä»–ã®ä¾‹ã¯ <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</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="cgi" id="cgi">ユーザ毎㮠CGI ディレクトリ</a></h2> <p>ãれãžã‚Œã®ãƒ¦ãƒ¼ã‚¶ã«å°‚用㮠cgi-bin ディレクトリを与ãˆã‚‹ãŸã‚ã«ã€ <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code> を使ã£ã¦ãƒ¦ãƒ¼ã‚¶ã®ãƒ›ãƒ¼ãƒ ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®æŒ‡å®šã•れãŸé ˜åŸŸã«å¯¾ã—㦠CGI を有効㫠ã™ã‚‹ã“ã¨ãŒã§ãã¾ã™ã€‚</p> <pre class="prettyprint lang-config"><Directory /home/*/public_html/cgi-bin/> Options ExecCGI SetHandler cgi-script </Directory></pre> <p>ãã—ã¦ã€<code>UserDir</code> ㌠<code>public_html</code> ã«è¨å®šã•れã¦ã„ã‚‹ã¨ä»®å®šã™ã‚‹ã¨ã€ ãã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã® CGI プãƒã‚°ãƒ©ãƒ <code>example.cgi</code> ã¯ä»¥ä¸‹ã®æ§˜ã«å‘¼ã³å‡ºã•れるã“ã¨ãŒã§ãã¾ã™:</p> <div class="example"><p><code> http://example.com/~rbowen/cgi-bin/example.cgi </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="htaccess" id="htaccess">ユーザã«ã‚ˆã‚‹è¨å®šå¤‰æ›´ã‚’許å¯</a></h2> <p>ユーザã«å½¼ã‚‰ã®ã‚¦ã‚§ãƒ–空間ã§ã®ã‚µãƒ¼ãƒã®è¨å®šã®å¤‰æ›´ã‚’許å¯ã™ã‚‹å ´åˆã€ ユーザ㯠<code>.htaccess</code> ファイルを使ã£ã¦è¨å®šã‚’変更ã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code> ã®å€¤ã‚’ ユーザãŒå¤‰æ›´ã™ã‚‹ã“ã¨ã‚’許å¯ã—ãŸã„ディレクティブã«å¯¾ã—ã¦å分ãªã‚‚ã®ã« è¨å®šã—ã¦ã„ã‚‹ã“ã¨ã‚’確èªã—ã¦ãã ã•ã„。ã“ã®æ©Ÿèƒ½ãŒã©ã®ã‚ˆã†ã«ã—ã¦å‹•作ã—ã¦ã„ã‚‹ã‹ ã®è©³ç´°ã¯ <a href="htaccess.html">.htaccess ãƒãƒ¥ãƒ¼ãƒˆãƒªã‚¢ãƒ«</a> ã‚’èªã‚“ã§ ãã ã•ã„。</p> </div></div> <div class="bottomlang"> <p><span>翻訳済ã¿è¨€èªž: </span><a href="../en/howto/public_html.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../fr/howto/public_html.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../ja/howto/public_html.html" title="Japanese"> ja </a> | <a href="../ko/howto/public_html.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | <a href="../tr/howto/public_html.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/howto/public_html.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`‚