Skip to content

Instantly share code, notes, and snippets.

@inouetmhr
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inouetmhr/9a780c67c80f7a330832 to your computer and use it in GitHub Desktop.
Save inouetmhr/9a780c67c80f7a330832 to your computer and use it in GitHub Desktop.
Mac OSX (Yosemite) で Apache WebDav

OSアップデートで設定がリセットされている。

/etc/apache2/httpd.conf で Include の WebDAV 1箇所と、LoadModuleのDav関係3つをアンコメント

/etc/apache2/extra/httpd-dav.conf を以下のように変更

DavLockDB "/tmp/DavLock"
# => /tmp/ のパーミッションに注意。/tmp/DavLock.dir /tmp/DavLock.pag が作られるはず

Alias /dav "/foo/bar/dav"
# => _www で読み書きできること

<Directory "/foo/bar/dav">
    Dav On
    Require all granted
    #<RequireAny> ブロックをコメントアウト(認証なしになるので注意!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment