广告

本站里的文章大部分经过自行整理与测试

2016年12月17日星期六

WebDAV - 在 IIS / Apache / Tomcat 设置

IIS
http://jasonmun.blogspot.my/2016/12/iis-webdav.html

Apache
http://jasonmun.blogspot.my/2016/12/apache-webdav.html

Tomcat
http://jasonmun.blogspot.my/2016/12/tomcat-webdav.html

IIS - WebDAV


1. 在 Control Panel - Programs and Features - Windows features
开启 IIS + WebDAV 设置


Internet Information Services
------> Web Management Tools
--------->> IIS Management Console
------> World Wide Web Services
--------->> Application Development Features
------------>>> ASP / ASP.NET ( 这个看个人需求 )
--------->> Common HTTP Features
------------>>> Default Document
------------>>> Directory Browsing
------------>>> Static Content
------------>>> WebDAV Publishing
--------->> Security
------------>>> Basic Authentication
------------>>> Request Filtering
 
2. Control Panel - Administrative Tools - Internet Information Service (IIS) Manager
添加虚拟目录


Default Web Site - 按右鍵 Add Virtual Directory

Alias: webdav
Physical path: C:\WebDAV

3. 准备一个别的 Windows 户口 (user1)

去 Control Panel - User Accounts - Manage another account - Create a new account (记得设置密码)

可以参考
http://jasonmun.blogspot.my/2016/03/windows-7-2dropbox.html

4. Internet Information Service (IIS) Manager
认证设置

- Default Web Site Home - IIS - Authentication
- Basic Authentication
* Enabled

Default Web Site Home - IIS - WebDAV Authentication
- Enable WebDAV
- Add Authoring Rule...
* Allow access to: All content
* Allow access to this content to: Specified users: user1
* Permissions: Read / Source / Write

5. 使用 WebDAV 客户端连接以上服务


WinSCP 
https://winscp.net/eng/download.php
  
BitKinex 
http://www.bitkinex.com/

http://127.0.0.1/webdav

户口用 user1 和密码用以上设置的密码

Tomcat - WebDAV

1. 在 Tomcat 上安装 slide 服务, 它具 WebDAV 功能
虽然 slide 已停止开发, 但依然可用

http://archive.apache.org/dist/jakarta/slide/binaries/
http://archive.apache.org/dist/jakarta/slide/binaries/jakarta-slide-server-bin-2.0.zip

从 jakarta-slide-server-bin-2.0.zip 里取出 webapps/slide.war,
Deploy 到 tomcat 的 Web 容器中

2. 使用 WebDAV 客户端连接以上服务

WinSCP 
https://winscp.net/eng/download.php
  
BitKinex 
http://www.bitkinex.com/

http://127.0.0.1:8080/slide/files
预设户口与密码皆是 root
apache-tomcat-8.0.X\bin\store\metadata\users\root.def.xml

文件真正位置在以下
apache-tomcat-8.0.X\bin\store\content\files\filename_1.0

JackRabbit - WebDAV Client 编写
http://jackrabbit.apache.org/jcr/index.html
https://www.ibm.com/developerworks/cn/java/j-lo-jackrabbit/