WebDAV (RHEL3)

# rpm -qa | grep httpd-2
httpd-2.0.46-40.ent
# rpm -qa | grep mod_ssl
mod_ssl-2.0.46-40.ent

# mkdir /var/www/dav
# chown apache:apache /var/www/dav/
# chmod 770 /var/www/dav/

# htpasswd -c /etc/httpd/conf/dav.pwd hogeuser
New password: Re-type new password: Adding password for user hogeuser

# cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf-`date -%Y%m%d%H%M%S`
# vi /etc/httpd/conf/httpd.conf
— /etc/httpd/conf/httpd.conf-20041123221156 2004-11-23 22:11:59.000000000 +0900
+++ /etc/httpd/conf/httpd.conf 2004-11-24 00:28:05.000000000 +0900
@@ -1042.3 +1042.15 @@
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#
+
+Alias /dav “/var/www/dav”
+
+ Options indexes
+ AllowOverride None
+ DAV on
+ SSLRequireSSL
+ AuthType Basic
+ AuthName “WebDAV”
+ AuthUserFile /etc/httpd/conf/dav.pwd
+ Require valid-user
+

# /etc/init.d/httpd configtest
# /etc/init.d/httpd reload

タイトルとURLをコピーしました