github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/howto/public_html.html.ja.utf8 (about)

     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  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
     5  <!--
     6          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     7                This file is generated from xml source: DO NOT EDIT
     8          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     9        -->
    10  <title>ユーザ毎のウェブディレクトリ - Apache HTTP サーバ バージョン 2.2</title>
    11  <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
    12  <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
    13  <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" />
    14  <script src="../style/scripts/prettify.min.js" type="text/javascript">
    15  </script>
    16  
    17  <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/howto/public_html.html" rel="canonical" /></head>
    18  <body id="manual-page"><div id="page-header">
    19  <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>
    20  <p class="apache">Apache HTTP サーバ バージョン 2.2</p>
    21  <img alt="" src="../images/feather.gif" /></div>
    22  <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
    23  <div id="path">
    24  <a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP サーバ</a> &gt; <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> &gt; <a href="../">バージョン 2.2</a> &gt; <a href="./">How-To / チュートリアル</a></div><div id="page-content"><div class="retired"><h4>Please note</h4>
    25              <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p>
    26          <p>You may follow <a href="http://httpd.apache.org/docs/current/howto/public_html.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>ユーザ毎のウェブディレクトリ</h1>
    27  <div class="toplang">
    28  <p><span>翻訳済み言語: </span><a href="../en/howto/public_html.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
    29  <a href="../ja/howto/public_html.html" title="Japanese">&nbsp;ja&nbsp;</a> |
    30  <a href="../ko/howto/public_html.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
    31  <a href="../tr/howto/public_html.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
    32  </div>
    33  <div class="outofdate">この日本語訳はすでに古くなっている
    34              可能性があります。
    35              最近更新された内容を見るには英語版をご覧下さい。
    36          </div>
    37  
    38  <p>複数のユーザのいるシステムでは、<code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> ディレクティブを使って
    39      各ユーザがホームディレクトリにウェブサイトを構築できるように設定することが
    40      可能です。URL <code>http://example.com/~username/</code> を訪れた人は
    41      "<code>username</code>" というユーザの <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> ディレクティブで指定された
    42      サブディレクトリからコンテンツを得ることになります。</p>
    43  </div>
    44  <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#related">ユーザ毎のウェブディレクトリ</a></li>
    45  <li><img alt="" src="../images/down.gif" /> <a href="#userdir">UserDir を使ってファイルのパスを設定する</a></li>
    46  <li><img alt="" src="../images/down.gif" /> <a href="#enable">この機能を使用できるユーザを制限する</a></li>
    47  <li><img alt="" src="../images/down.gif" /> <a href="#cgi">ユーザ毎の CGI ディレクトリ</a></li>
    48  <li><img alt="" src="../images/down.gif" /> <a href="#htaccess">ユーザによる設定変更を許可</a></li>
    49  </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>
    50  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
    51  <div class="section">
    52  <h2><a name="related" id="related">ユーザ毎のウェブディレクトリ</a></h2>
    53      
    54      <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>
    55      </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
    56  <div class="section">
    57  <h2><a name="userdir" id="userdir">UserDir を使ってファイルのパスを設定する</a></h2>
    58      
    59  
    60      <p><code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> ディレクティブは
    61      ユーザ毎のコンテンツが読み込まれるディレクトリを指定します。
    62      このディレクティブはいろいろ違った形式を取ることができます。</p>
    63  
    64      <p>スラッシュで始まらないパスが与えられたときは、ユーザのホームディレクトリ
    65      からの相対パスとみなされます。次の設定があったときに:</p>
    66  
    67      <div class="example"><p><code>
    68        UserDir public_html
    69      </code></p></div>
    70  
    71      <p>URL <code>http://example.com/~rbowen/file.html</code> は
    72      パス <code>/home/rbowen/public_html/file.html</code> へ
    73      変換されます。</p>
    74  
    75      <p>パスがスラッシュで始まるときは、ディレクトリパスはそのパスに
    76      ユーザ名を加えたものからなります。次の設定のとき:</p>
    77  
    78      <div class="example"><p><code>
    79        UserDir /var/html
    80      </code></p></div>
    81  
    82      <p>URL <code>http://example.com/~rbowen/file.html</code> は
    83      パス <code>/var/html/rbowen/file.html</code> へ変換されます。</p>
    84  
    85      <p>アスタリスク (*) を含むパスが指定されたときは、アスタリスクを
    86      ユーザ名で置換したものが使用されます。このような設定だと:</p>
    87  
    88      <div class="example"><p><code>
    89        UserDir /var/www/*/docs
    90      </code></p></div>
    91  
    92      <p>URL <code>http://example.com/~rbowen/file.html</code> は
    93      パス <code>/var/www/rbowen/docs/file.html</code> へ変換されます。</p>
    94  
    95    </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
    96  <div class="section">
    97  <h2><a name="enable" id="enable">この機能を使用できるユーザを制限する</a></h2>
    98      
    99  
   100      <p>UserDir のドキュメントに示されている構文を使うことで、
   101      どのユーザがこの機能を使うことができるかを制限することができます:</p>
   102  
   103      <div class="example"><p><code>
   104        UserDir enabled<br />
   105        UserDir disabled root jro fish
   106      </code></p></div>
   107  
   108      <p>上の設定は <code>dissabled</code> 文のユーザ以外のすべてのユーザに
   109      対して UserDir の機能を有効にします。同様にして、以下のように
   110      数名のユーザ以外に対してこの機能を無効にすることもできます:</p>
   111  
   112      <div class="example"><p><code>
   113        UserDir disabled<br />
   114        UserDir enabled rbowen krietz
   115      </code></p></div>
   116  
   117      <p>他の例は <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code>
   118      の説明を参照してください。</p>
   119  
   120    </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   121  <div class="section">
   122  <h2><a name="cgi" id="cgi">ユーザ毎の CGI ディレクトリ</a></h2>
   123    
   124  
   125     <p>それぞれのユーザに専用の cgi-bin ディレクトリを与えるために、
   126      <code class="directive"><a href="../mod/core.html#directory">&lt;Directory&gt;</a></code>
   127      を使ってユーザのホームディレクトリの指定された領域に対して CGI を有効に
   128      することができます。</p>
   129  
   130      <div class="example"><p><code>
   131        &lt;Directory /home/*/public_html/cgi-bin/&gt;<br />
   132         Options ExecCGI<br />
   133         SetHandler cgi-script<br />
   134         &lt;/Directory&gt;
   135      </code></p></div>
   136  
   137      <p>そして、<code>UserDir</code> が
   138      <code>public_html</code> に設定されていると仮定すると、
   139      そのディレクトリの CGI プログラム <code>example.cgi</code>
   140      は以下の様に呼び出されることができます:</p>
   141  
   142      <div class="example"><p><code>
   143      http://example.com/~rbowen/cgi-bin/example.cgi
   144      </code></p></div>
   145  
   146      </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   147  <div class="section">
   148  <h2><a name="htaccess" id="htaccess">ユーザによる設定変更を許可</a></h2>
   149      
   150  
   151      <p>ユーザに彼らのウェブ空間でのサーバの設定の変更を許可する場合、
   152      ユーザは <code>.htaccess</code> ファイルを使って設定を変更する必要があります。
   153      <code class="directive"><a href="../mod/core.html#allowoverride">AllowOverride</a></code> の値を
   154      ユーザが変更することを許可したいディレクティブに対して十分なものに
   155      設定していることを確認してください。この機能がどのようにして動作しているか
   156      の詳細は <a href="htaccess.html">.htaccess チュートリアル</a> を読んで
   157      ください。</p>
   158  
   159    </div></div>
   160  <div class="bottomlang">
   161  <p><span>翻訳済み言語: </span><a href="../en/howto/public_html.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
   162  <a href="../ja/howto/public_html.html" title="Japanese">&nbsp;ja&nbsp;</a> |
   163  <a href="../ko/howto/public_html.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
   164  <a href="../tr/howto/public_html.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
   165  </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&amp;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>
   166  <script type="text/javascript"><!--//--><![CDATA[//><!--
   167  var comments_shortname = 'httpd';
   168  var comments_identifier = 'http://httpd.apache.org/docs/2.2/howto/public_html.html';
   169  (function(w, d) {
   170      if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
   171          d.write('<div id="comments_thread"><\/div>');
   172          var s = d.createElement('script');
   173          s.type = 'text/javascript';
   174          s.async = true;
   175          s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
   176          (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
   177      }
   178      else { 
   179          d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
   180      }
   181  })(window, document);
   182  //--><!]]></script></div><div id="footer">
   183  <p class="apache">Copyright 2017 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
   184  <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[//><!--
   185  if (typeof(prettyPrint) !== 'undefined') {
   186      prettyPrint();
   187  }
   188  //--><!]]></script>
   189  </body></html>