VineLinux3.2でWebDAV
もろ嵌ったので、自分的メモ
1.APT-GETでmod_davをインストール
・mod_davはextrasに収録されているので/etc/apt/sources.listにextrasを追加する
#apt-get update
#apt-get install mod_dav
#apt-get install mod_encoding
※mod_encodingを入れないと日本語がバケバケ
2.ディレクトリの作成
他人に公開するので極力URLを少なくする為に/home/httpd以下にディレクトリを作成します。
#cd /home/httpd ----場所は適宜
#mkdir dav
#chmod 700 dav
#chmon apache:apache dav
3./etc/httpd/conf/httpd.confの編集
/etc/httpd/conf/httpd.conf
追加----------------------
<IfDefine HAVE_ENCODING>
LoadModule encoding_module modules/mod_encoding.so
</IfDefine>
--------------------------
追加----------------------
<IfDefine HAVE_ENCODING>
Addmodule mod_encoding.c
</IfDefine>
--------------------------
追加----------------------
<IfModule mod_dav.c>
Alias /dav/ /home/httpd/html/dav/
<Location /dav>
DAV On
DAVMinTimeout 600
AllowOverride All
Options All
<Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
AuthType Basic
AuthName DAV
AuthUserFile /home/httpd/.htpasswd
AuthGroupFile /dev/null
require valid-user
</Limit>
</Location>
DAVLockDB /home/httpd/lockdb
</IfModule>
--------------------------
追加----------------------
<IfModule mod_encoding.c>
EncodingEngine on
SetServerEncoding UTF-8
DefaultClientEncoding JA-AUTO-SJIS-MS SJIS
AddClientEncoding "cadaver/" EUC-JP
NormalizeUsername on
</IfModule>
--------------------------
※"NormalizeUsername on"を入れないとWinXPでログインできない
4.ログインするパスワードを変更します。
#cd /home/httpd/
#htpasswd -c .htpasswd xxxxxx <-User名
2回目からは
#htpasswd -c xxxxxx <-User名
5.Windowsからログインする

0