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_authn_anon - 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="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
22<div id="path">
23<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="./">モジュール</a></div>
24<div id="page-content">
25<div id="preamble"><h1>Apache モジュール mod_authn_anon</h1>
26<div class="toplang">
27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_authn_anon.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
28<a href="/ja/mod/mod_authn_anon.html" title="Japanese">&nbsp;ja&nbsp;</a> |
29<a href="/ko/mod/mod_authn_anon.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
30</div>
31<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>認証が必要な領域への "anonymous" ユーザのアクセスを許可する
32</td></tr>
33<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
34<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>authn_anon_module</td></tr>
35<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_authn_anon.c</td></tr>
36<tr><th><a href="module-dict.html#Compatibility">互換性:</a></th><td>Apache 2.1 以降</td></tr></table>
37<h3>概要</h3>
38
39    <p>このモジュールは <code class="module"><a href="/mod/mod_auth_basic.html">mod_auth_basic</a></code> のような
40    認証フロントエンドとして、anonymous-ftp サイトのような、「魔法の」ユーザ ID
41    'anonymous' と電子メールアドレスをパスワードにしたユーザ認証を
42    行なう機能を提供します。この電子メールアドレスはログ収集することが
43    できます。</p>
44
45    <p>他の (データベースによる) アクセス制御方法と組み合わせることで、
46    「未登録」ユーザに対してサイトを公開しつつ、効率よくユーザ追跡したり、
47    ユーザのプロファイルに応じたカスタマイズをしたりできます。
48    このような認証に基づいたユーザ追跡の利点の一つは、
49    マジッククッキーに基づくユーザ追跡方法や、
50    珍妙な URL の接頭辞や接尾辞を利用したユーザ追跡方法とは異なり、
51    完全にブラウザ非依存であり、ユーザ間で URL を共有することができるという
52    点です。</p>
53
54    <p><code class="module"><a href="/mod/mod_auth_basic.html">mod_auth_basic</a></code> を使用している場合は、このモジュールは
55    <code class="directive"><a href="/mod/mod_auth_basic.html#authbasicprovider">AuthBasicProvider</a></code> に
56    <code>anon</code> という値を設定することで起動されます。</p>
57</div>
58<div id="quickview"><h3 class="directives">ディレクティブ</h3>
59<ul id="toc">
60<li><img alt="" src="/images/down.gif" /> <a href="#anonymous">Anonymous</a></li>
61<li><img alt="" src="/images/down.gif" /> <a href="#anonymous_logemail">Anonymous_LogEmail</a></li>
62<li><img alt="" src="/images/down.gif" /> <a href="#anonymous_mustgiveemail">Anonymous_MustGiveEmail</a></li>
63<li><img alt="" src="/images/down.gif" /> <a href="#anonymous_nouserid">Anonymous_NoUserID</a></li>
64<li><img alt="" src="/images/down.gif" /> <a href="#anonymous_verifyemail">Anonymous_VerifyEmail</a></li>
65</ul>
66<h3>トピック</h3>
67<ul id="topics">
68<li><img alt="" src="/images/down.gif" /> <a href="#example">例</a></li>
69</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
70<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
71<div class="section">
72<h2><a name="example" id="example">例</a></h2>
73    <p>以下の例は「普通」の htpasswd ファイルに基づいた認証と組み合わされて
74    おり、以下の要件を見たすユーザを「ゲスト」として許可します:</p>
75
76    <ul>
77      <li>ユーザは userID を入力しなければなりません。
78      (<code class="directive"><a href="#anonymous_nouserid">Anonymous_NoUserID</a></code>)</li>
79
80      <li>ユーザはパスワードを入力しなければなりません。
81      (<code class="directive"><a href="#anonymous_mustgiveemail">Anonymous_MustGiveEmail</a></code>)</li>
82
83      <li>入力されたパスワードは有効な電子メールアドレスでなければ
84      なりません。<em>すなわち</em>、少くとも一つの '@' と '.' が
85      含まれている必要があります。
86      (<code class="directive"><a href="#anonymous_verifyemail">Anonymous_VerifyEmail</a></code>)</li>
87
88      <li>userID は <code>anonymous guest www test
89      welcome</code> のどれかでなければなりません。
90      ユーザ名の比較は大文字小文字を区別<strong>しません。</strong></li>
91
92      <li>パスワード欄に入力された電子メールアドレスはエラーログファイルに
93      ロギングされます。
94      (<code class="directive"><a href="#anonymous_logemail">Anonymous_LogEmail</a></code>)</li>
95    </ul>
96
97    <div class="example"><h3>例</h3><p><code>
98      &lt;Directory /foo&gt;
99      <span class="indent">
100        AuthName "Use 'anonymous' &amp; Email address for guest entry"<br />
101        AuthType Basic<br />
102        AuthBasicProvider file anon<br />
103        AuthUserFile /path/to/your/.htpasswd<br />
104        <br />
105        Anonymous_NoUserID off<br />
106        Anonymous_MustGiveEmail on<br />
107        Anonymous_VerifyEmail on<br />
108        Anonymous_LogEmail on<br />
109        Anonymous anonymous guest www test welcome<br />
110        <br />
111        Order Deny,Allow<br />
112        Allow from all<br />
113        <br />
114        Require valid-user<br />
115      </span>
116      &lt;/Directory&gt;
117    </code></p></div>
118</div>
119<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
120<div class="directive-section"><h2><a name="Anonymous" id="Anonymous">Anonymous</a> <a name="anonymous" id="anonymous">ディレクティブ</a></h2>
121<table class="directive">
122<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>パスワードの検査無しでアクセスを許可する userID を指定する
123</td></tr>
124<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>Anonymous <var>user</var> [<var>user</var>] ...</code></td></tr>
125<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr>
126<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr>
127<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
128<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_authn_anon</td></tr>
129</table>
130    <p>パスワードの検査をしないでアクセスを許可する「魔法の」 userID を
131    設定します。userID 中に空白を使えるようにするため、
132    エスケープ文字 \ による方法と、引用符 ' と " によるクオーティング
133    を使うことができます。</p>
134
135    <p>ユーザ名の比較は<strong>大文字小文字を区別しない</strong>ことに
136    注意してください。<br />
137    魔法のユーザ名 '<code>anonymous</code>' が許可されている userID に
138    含むようにすることは強く推奨されています。</p>
139
140    <div class="example"><h3>例:</h3><p><code>
141      Anonymous anonymous "Not Registered" "I don't know"
142    </code></p></div>
143
144    <p>これは、userID "anonymous",
145    "AnonyMous", "Not Registered", "I Don't Know" のどれかを使っても
146    パスワード無しでユーザがサイトに入れるようにします。</p>
147
148    <p>Apache 2.1 では userID に "<code>*</code>" を指定することができます。
149    この場合、<em>すべての</em>userID を許可します。</p>
150
151</div>
152<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
153<div class="directive-section"><h2><a name="Anonymous_LogEmail" id="Anonymous_LogEmail">Anonymous_LogEmail</a> <a name="anonymous_logemail" id="anonymous_logemail">ディレクティブ</a></h2>
154<table class="directive">
155<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>入力されたパスワードがエラーログにロギングされるかどうかを
156設定する</td></tr>
157<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>Anonymous_LogEmail On|Off</code></td></tr>
158<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>Anonymous_LogEmail On</code></td></tr>
159<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr>
160<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr>
161<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
162<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_authn_anon</td></tr>
163</table>
164    <p>デフォルトの <code>On</code> に設定された場合は、
165    入力された (まっとうな電子メールアドレスであることが
166    期待される) 「パスワード」がエラーログにロギングされます。</p>
167
168</div>
169<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
170<div class="directive-section"><h2><a name="Anonymous_MustGiveEmail" id="Anonymous_MustGiveEmail">Anonymous_MustGiveEmail</a> <a name="anonymous_mustgiveemail" id="anonymous_mustgiveemail">ディレクティブ</a></h2>
171<table class="directive">
172<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>空パスワードを許可するかどうかを指定する</td></tr>
173<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>Anonymous_MustGiveEmail On|Off</code></td></tr>
174<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>Anonymous_MustGiveEmail On</code></td></tr>
175<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr>
176<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr>
177<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
178<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_authn_anon</td></tr>
179</table>
180    <p>ユーザがパスワードとして電子メールアドレスを指定する必要があるかどうかを
181    設定します。これは空パスワードを禁止します。</p>
182
183</div>
184<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
185<div class="directive-section"><h2><a name="Anonymous_NoUserID" id="Anonymous_NoUserID">Anonymous_NoUserID</a> <a name="anonymous_nouserid" id="anonymous_nouserid">ディレクティブ</a></h2>
186<table class="directive">
187<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>空 userID を許可するかを指定する</td></tr>
188<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>Anonymous_NoUserID On|Off</code></td></tr>
189<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>Anonymous_NoUserID Off</code></td></tr>
190<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr>
191<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr>
192<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
193<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_authn_anon</td></tr>
194</table>
195    <p><code>On</code> に設定すると、ユーザは userID (とおそらくは
196    パスワード欄も) 空にすることができます。これは単にリターンキーを
197    叩いたり OK ボタンを直接クリックしたりする MS-Explorer ユーザには
198    非常に便利です。そのような操作はごくごく自然なものでしょう。</p>
199
200</div>
201<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
202<div class="directive-section"><h2><a name="Anonymous_VerifyEmail" id="Anonymous_VerifyEmail">Anonymous_VerifyEmail</a> <a name="anonymous_verifyemail" id="anonymous_verifyemail">ディレクティブ</a></h2>
203<table class="directive">
204<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>パスワード欄が正しい形式の電子メールアドレスであることを
205調べるかどうかを設定する</td></tr>
206<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>Anonymous_VerifyEmail On|Off</code></td></tr>
207<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>Anonymous_VerifyEmail Off</code></td></tr>
208<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr>
209<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr>
210<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
211<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_authn_anon</td></tr>
212</table>
213    <p><code>On</code> に設定されている場合、ユーザが有効な電子メール
214    アドレスを入力することを推奨するため、入力された「パスワード」は
215    少なくとも一つの '@' と '.' を含んでいるかどうかを調べます
216    (上の <code class="directive"><a href="#anonymous_logemail">Anonymous_LogEmail</a></code> 参照)。</p>
217
218</div>
219</div>
220<div class="bottomlang">
221<p><span>翻訳済み言語: </span><a href="/en/mod/mod_authn_anon.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
222<a href="/ja/mod/mod_authn_anon.html" title="Japanese">&nbsp;ja&nbsp;</a> |
223<a href="/ko/mod/mod_authn_anon.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
224</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>
225<script type="text/javascript"><!--//--><![CDATA[//><!--
226var comments_shortname = 'httpd';
227var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_authn_anon.html';
228(function(w, d) {
229    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
230        d.write('<div id="comments_thread"><\/div>');
231        var s = d.createElement('script');
232        s.type = 'text/javascript';
233        s.async = true;
234        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
235        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
236    }
237    else { 
238        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
239    }
240})(window, document);
241//--><!]]></script></div><div id="footer">
242<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>
243<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[//><!--
244if (typeof(prettyPrint) !== 'undefined') {
245    prettyPrint();
246}
247//--><!]]></script>
248</body></html>