WebDAV

基本上按照 Apache mod_dav 的說明就可以安裝完成了,但若要讓WinXP的網路芳鄰要能存取DAV Folder,必須將Virtual Host 的 root (/) 設成 DAV Enabled,否則會一直要認證…

<virtualhost *:80>
ServerName share.example.org
DocumentRoot "/home/www/share"
<directory "/home/www/share">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride AuthConfig
    Order allow,deny
    allow from all
</directory>
ErrorLog /home/www/logs/share-error.log
CustomLog /home/www/logs/share-access.log combined

DavLockDB /tmp/DavLock

<location />
    Dav On
    AuthType Basic
    AuthName DAV
    AuthUserFile /home/www/auth-file
    Require valid-user
</location>
</virtualhost>

3 Responses to “WebDAV”


  1. 1 ychsiao

    我記得他沒有UTF-8/big5之類的編碼,所以中文進去會爛掉,不知道目前如何?

  2. 2 jnlin

    我的filesystem是UTF-8,中文沒問題。

  3. 3 ychsiao

    thanks!

Leave a Reply