WebDAV¤Ë¤Æ¥Õ¥¡¥¤¥ëžÁ÷¤ò¹Ô¤Ê¤¤¡¢Ç§¾Ú¤ÏOpenLDAP¤ò»ÈÍѤ·¤Þ¤¹¡£ Apache¤ÎºÆ¥¤¥ó¥¹¥È¡¼¥ë †# ./configure --with-mpm=prefork --enable-rewrite --enable-ssl --enable-dav \ --with-ldap --enable-ldap --enable-authnz-ldap --with-included-apr # make # make install WebDAV¤ÎÀßÄê †¸ø³«¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤·¡¢Apache¤ÎÀßÄê¤òÊѹ¹ # mkdir /home/webdav # chown nobody.nobody /home/webdav # mkdir /usr/local/apache2/var # chown nobody.nobody /usr/local/apache2/var # vi /usr/local/apache2/conf/httpd.conf Include conf/extra/httpd-dav.conf # vi /usr/local/apache2/conf/extra/httpd-dav.conf DavLockDB "/usr/local/apache2/var/DavLock" Alias /webdav "/home/webdav" <Location "/webdav"> Dav On Order Allow,Deny Allow from all AuthType Basic AuthName "WebDAV Server" AuthBasicProvider ldap AuthLDAPURL ldap://example.com/dc=example,dc=com?uid?sub Require ldap-attribute objectClass=person </Location> BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "MS FrontPage" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully BrowserMatch "^gnome-vfs/1.0" redirect-carefully BrowserMatch "^XML Spy" redirect-carefully BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully mod_encoding¤Î¥¤¥ó¥¹¥È¡¼¥ë †mod_encoding-20021209.tar.gz ¤È mod_encoding.c.apache2.20040616 ¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹ WebDAV°Ê³°¤Çʸ»ú²½¤±¤Î¥È¥é¥Ö¥ë¤â¤¢¤ë¤è¤¦¤Ê¤Î¤Ç¥Ñ¥Ã¥Á¤âÅö¤Æ¤Þ¤¹ # tar xvzf mod_encoding-20021209.tar.gz # cp mod_encoding.c.apache2.20040616 mod_encoding-20021209/mod_encoding.c # cd mod_encoding-20021209/lib/ # ./configure # make # make install # cd .. # patch -p0 < ../mod_encoding.c-apache2.2-20060520.patch # ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-iconv-hook # vi Makefile #LIBS = -liconv_hook LIBS = -L/usr/local/lib -liconv_hook #install-exec-local: # $(APXS) -i mod_encoding.so install-exec-local: $(APXS) -i -a -n encoding mod_encoding.la # make # make install mod_encoding¤ÎÀßÄê¤òÄɲà # vi /usr/local/apache2/conf/extra/httpd-dav.conf EncodingEngine on SetServerEncoding UTF-8 DefaultClientEncoding UTF-8 CP932 EUCJP-MS AddClientEncoding "Microsoft .* DAV 1.1" ASCII CP932 UTF-8 AddClientEncoding "Microsoft .* DAV" UTF-8 CP932 AddClientEncoding "(Microsoft .* DAV $)" UTF-8 CP932 AddClientEncoding "(Microsoft .* DAV 1.1)" CP932 UTF-8 AddClientEncoding "Microsoft-WebDAV*" UTF-8 CP932 AddClientEncoding "RMA/*" CP932 AddClientEncoding "xdwin9x/" CP932 AddClientEncoding "cadaver/" UTF-8 EUCJP-MS AddClientEncoding "Mozilla/" EUCJP-MS ApacheºÆµ¯Æ° # /etc/rc.d/init.d/httpd graceful »²¹Í¥µ¥¤¥È †http://www.atmarkit.co.jp/flinux/rensai/apache2_07/apache07a.html |