このページの2つのバージョン間の差分を表示します。
02_freebsd:02_www:webdav [2013/10/23 23:59] – 作成 matsui | 02_freebsd:02_www:webdav [2013/12/19 05:52] (現在) – [日本語対応(mod_encoding)] matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== WebDAV ====== | ||
+ | |||
+ | ===== 環境 ===== | ||
+ | |||
+ | FreeBSD 6.0 | ||
+ | Apache 2.0.54 | ||
+ | |||
+ | ===== インストール(Apache2) ===== | ||
+ | |||
+ | Apache2からはWebDAVが標準で組み込まれているので、これを利用する。Apacheからバージョン2のApacheソースコードをダウンロードする。 | ||
+ | <code console> | ||
+ | # cd / | ||
+ | # make install | ||
+ | </ | ||
+ | |||
+ | ===== 日本語対応(mod_encoding) ===== | ||
+ | |||
+ | ■[[http:// | ||
+ | <code console> | ||
+ | # fetch http:// | ||
+ | # fetch http:// | ||
+ | # tar zxvf mod_encoding-20021209.tar.gz | ||
+ | # cd mod_encoding-20021209 | ||
+ | # cp ../ | ||
+ | # ./configure --with-apxs=/ | ||
+ | </ | ||
+ | |||
+ | ■そのままgmakeするとエラーが出るので修正 | ||
+ | <code console> | ||
+ | # vi mod_encoding.c | ||
+ | | ||
+ | # | ||
+ | ↓ | ||
+ | # | ||
+ | | ||
+ | </ | ||
+ | ■Makefileも修正 | ||
+ | <code console> | ||
+ | # vi Makefile | ||
+ | | ||
+ | LIBS = | ||
+ | ↓ | ||
+ | LIBS = -L/ | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ■コンパイル | ||
+ | gmakeインストールでエラーが表示されるが.libs/ | ||
+ | <code console> | ||
+ | # gmake | ||
+ | # gmake install | ||
+ | # cp .libs/ | ||
+ | </ | ||
+ | |||
+ | ===== httpd.confの修正 ===== | ||
+ | <code console> | ||
+ | # vi / | ||
+ | | ||
+ | | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | | ||
+ | | ||
+ | Alias /webdav "/ | ||
+ | |||
+ | < | ||
+ | DAV On | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | </ | ||
+ | -------------------追加個所----------------------- | ||
+ | </ | ||
+ | |||
+ | ■使用者のIDとPaswordを追加しておく。 | ||
+ | <code console> | ||
+ | # htpasswd -c / | ||
+ | New password: ***** | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ===== Apache再起動 ===== | ||
+ | <code console> | ||
+ | # apachectl restart | ||
+ | </ | ||
+ | |||
+ | ===== 接続確認 ===== | ||
+ | |||
+ | Windowsのマイネットワーク ⇒ ネットワークプレースの追加 |