サーバーをVine4からFreeBSD7.2に入れ替え。
なんとなく動くようになったけど、Lightning のスケジュールが表示されない。
DAV動かすの忘れてたから当然。
以前の設定見ながら動かそうとするもうまくいかず。
Explorerからフォルダにたどり着けません、といわれたり。
ローカルのファイルをコピーしようとしたら、コピー元が読み取れません。
みたいな...。
パスワードをなくしてみたり、認証方式を変えてみたりするもNG。
原因はささいな、そしていつもどおりのポカ。
ロック用のディレクトリにapacheのアクセス権を与えてませんでした。
いまはとりあえず動いてます。書き込みでエラーが出たのがちょっと気になるが無視。
[etc/apache22/extra/httpd-dav.conf]
#
# Distributed authoring and versioning (WebDAV)
#
# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
# mod_auth_digest, mod_authn_file
#
# The following example gives DAV write access to a directory called
# "uploads" under the ServerRoot directory.
#
# The User/Group specified in httpd.conf needs to have write permissions
# on the directory where the DavLockDB is placed and on any directory where
# "Dav On" is specified.
# /usr/local/var/apache ディレクトリを作ること。
# chown / chgrp でwww(ユーザ&グループ)にアクセス権を与えること。
DavLockDB "/usr/local/var/apache/DavLock"
# /usr/local/uploads ディレクトリを作り、
# www(ユーザ&グループ)にアクセス権を与える。
Alias /uploads "/usr/local/uploads"
# /upload ディレクトリの設定
<Directory "/usr/local/uploads">
# 説明不要 DAV使用
Dav On
# 全て許可
Order Allow,Deny
Allow from all
# 認証方式 Diges, realm(領域)は DAV-upload
AuthType Digest
AuthName DAV-upload
# You can use the htdigest program to create the password database:
# htdigest -c "/usr/local/user.passwd" DAV-upload admin
# htdigestコマンドでパスワードファイルを作ること。
AuthUserFile "/usr/local/user.passwd"
AuthDigestProvider file
# Allow universal read-access, but writes are restricted
# to the admin user.
# 読取アクセス全般を許可, 書込は制限
# <LimitExcept GET OPTIONS>
# require user admin
# </LimitExcept>
</Directory>
# 特に制限なし, セキュリティなし
Alias /dav "/home/dav"
<Location /dav>
Dav On
Order deny,allow
Allow from all
</Location>
#<Directory "/home/dav">
# Dav On
#
# Order Allow,Deny
# Allow from all
#
# AuthType Basic
# AuthName DAV
# AuthUserFile /user/local/user.passwd
#
# <LimitExcept GET OPTIONS>
# require user admin
# </LimitExcept>
#</Directory>
#
# The following directives disable redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with several clients that do not appropriately handle
# redirects for folders with DAV methods.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully