◆WebDAVサーバの設定
日経Linuxの11月号に設定方法がのっていたので
やってみました。
[root@hackerbobchan var]# yum install httpd
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.nara.wide.ad.jp
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
addons | 951 B 00:00
base | 2.1 kB 00:00
extras | 1.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-31.el5.centos set to be updated
extras/filelists | 151 kB 00:00
updates/filelists_db | 1.0 MB 00:03
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
httpd i386 2.2.3-31.el5.centos base 1.2 M
Transaction Summary
=============================================================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
httpd-2.2.3-31.el5.centos.i386.rpm | 1.2 MB 00:05
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd 1/1
Installed:
httpd.i386 0:2.2.3-31.el5.centos
Complete!
[root@hackerbobchan var]# apachectl start
[root@hackerbobchan var]# mkdir -p /var/www/webdav
[root@hackerbobchan var]# chown apache.apache /var/www/webdav
[root@hackerbobchan var]# cd /etc/httpd/conf
[root@hackerbobchan conf]# ls
httpd.conf magic
[root@hackerbobchan conf]# cp -p httpd.conf httpd.conf_20091107
[root@hackerbobchan conf]# vi httpd.conf
変更箇所
[root@hackerbobchan conf]# diff httpd.conf httpd.conf_20091107
551d550
< Alias /share /var/www/webdav
555,557d553
< <Location /share>
< DAV on
< </Location>
[root@hackerbobchan conf]# apachectl restart
[root@hackerbobchan conf]# chkconfig httpd on
これでwindowsのエクスプローラのアドレスの部分に
\\192.168.11.254\shareとうつと接続できます。
私の環境だととても不安定で接続できたりできなかったりしています。
おそらく同一サーバでsquidも一緒に動かしていて、さらにIEとかの
ブラウザのプロキシの指定先が一緒のサーバなので、おかしく
なっているんじゃないかなと思っています。
※WebDAVで接続時にLinux側でtopを実行していたらsquidの
プロセスが稼働していた為、そうかなと思いました。
ここは時間があるときにもう少し調べてみます。