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_dav_lock - 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_dav_lock</h1> 26<div class="toplang"> 27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_dav_lock.html" hreflang="en" rel="alternate" title="English"> en </a> | 28<a href="/ja/mod/mod_dav_lock.html" title="Japanese"> ja </a></p> 29</div> 30<div class="outofdate">この日本語訳はすでに古くなっている 31 可能性があります。 32 最近更新された内容を見るには英語版をご覧下さい。 33 </div> 34<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td><code class="module"><a href="/mod/mod_dav.html">mod_dav</a></code> 用の汎用ロックモジュール</td></tr> 35<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 36<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>dav_lock_module</td></tr> 37<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_dav_lock.c</td></tr> 38<tr><th><a href="module-dict.html#Compatibility">互換性:</a></th><td>バージョン 2.1 以降</td></tr></table> 39<h3>概要</h3> 40 41 <p>このモジュールは <code class="module"><a href="/mod/mod_dav.html">mod_dav</a></code> のどのバックエンド 42 からでも使える汎用ロック API を提供します。 43 使用には最低限 <code class="module"><a href="/mod/mod_dav.html">mod_dav</a></code> 44 を必要としますが、これを利用するバックエンドが存在しないと役に立たないので、 45 そのような場合はサーバに読み込むべきではありません。 46 <code class="module"><a href="/mod/mod_dav_lock.html">mod_dav_lock</a></code> 47 を実際に利用するバックエンドモジュールの例としては subversion 48 プロバイダモジュールの <a href="http://subversion.tigris.org/">mod_dav_svn</a> があります。</p> 49 50 <p><code class="module"><a href="/mod/mod_dav_fs.html">mod_dav_fs</a></code> は特化された専用のバージョンを 51 使うため、この汎用モジュールは<em>必要ない</em>ことに注意して 52 ください。</p> 53 54 <p><code class="module"><a href="/mod/mod_dav_lock.html">mod_dav_lock</a></code> を機能させるには、 55 以下で説明されている <code class="directive"><a href="#davgenericlockdb">DavGenericLockDB</a></code> を使って 56 ロックデータベースの場所を指定するだけです。</p> 57 58 <div class="note"><h3>開発者向けのメモ</h3> 59 <p>ロックを提供している関数へのポインタを取得するためには、 60 <code>ap_lookup_provider</code> API を、引数 <code>dav-lock</code>, 61 <code>generic</code>, <code>0</code> を指定して使う必要が 62 あります。</p> 63 </div> 64</div> 65<div id="quickview"><h3 class="directives">ディレクティブ</h3> 66<ul id="toc"> 67<li><img alt="" src="/images/down.gif" /> <a href="#davgenericlockdb">DavGenericLockDB</a></li> 68</ul> 69<h3>参照</h3> 70<ul class="seealso"> 71<li><code class="module"><a href="/mod/mod_dav.html">mod_dav</a></code></li> 72</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> 73 74<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 75<div class="directive-section"><h2><a name="DavGenericLockDB" id="DavGenericLockDB">DavGenericLockDB</a> <a name="davgenericlockdb" id="davgenericlockdb">ディレクティブ</a></h2> 76<table class="directive"> 77<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>DAV ロックデータベースの場所</td></tr> 78<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>DavGenericLockDB <var>file-path</var></code></td></tr> 79<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ</td></tr> 80<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 81<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_dav_lock</td></tr> 82</table> 83 <p><code class="directive">DavGenericLockDB</code> ディレクティブを 84 使って、拡張子を除いたロックデータベースへのフルパスを 85 指定します。絶対パスでないときは <code class="directive"><a href="/mod/core.html#serverroot">ServerRoot</a></code> からの相対パスとして 86 扱われます。<code class="module"><a href="/mod/mod_dav_lock.html">mod_dav_lock</a></code> の実装ではユーザの 87 ロックを追跡するのに SDBM データベースを使います。</p> 88 89 <div class="example"><h3>例</h3><p><code> 90 DavGenericLockDB var/DavLock 91 </code></p></div> 92 93 <p>ロックデータベースファイルのあるディレクトリは 94 Apache が実行されている <code class="directive"><a href="/mod/mpm_common.html#user">User</a></code> 95 と <code class="directive"><a href="/mod/mpm_common.html#group">Group</a></code> によって 96 書き込み可能でなければなりません。セキュリティ上の理由から、 97 既存のディレクトリのパーミッションを変更するのではなく、 98 専用のディレクトリを作るのが良いでしょう。上の例では、 99 Apache は <code class="directive"><a href="/mod/core.html#serverroot">ServerRoot</a></code> の下の <code>var/</code> 100 ディレクトリに、ファイル名の本体が <code>DavLock</code> で 101 サーバが選択した拡張子を持つファイルを作成します。</p> 102 103 104</div> 105</div> 106<div class="bottomlang"> 107<p><span>翻訳済み言語: </span><a href="/en/mod/mod_dav_lock.html" hreflang="en" rel="alternate" title="English"> en </a> | 108<a href="/ja/mod/mod_dav_lock.html" title="Japanese"> ja </a></p> 109</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> 110<script type="text/javascript"><!--//--><![CDATA[//><!-- 111var comments_shortname = 'httpd'; 112var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_dav_lock.html'; 113(function(w, d) { 114 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 115 d.write('<div id="comments_thread"><\/div>'); 116 var s = d.createElement('script'); 117 s.type = 'text/javascript'; 118 s.async = true; 119 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 120 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 121 } 122 else { 123 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 124 } 125})(window, document); 126//--><!]]></script></div><div id="footer"> 127<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> 128<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[//><!-- 129if (typeof(prettyPrint) !== 'undefined') { 130 prettyPrint(); 131} 132//--><!]]></script> 133</body></html>