First, the first article provides the way to configure WebDAV
On the internet to find two more good configuration methods for Win7 Win2003, respectively, and have been tested configuration can be used normally
The original text of the reference address, which is purely to respect the work of other people's achievements
In the second article, we will provide the development of using the Webdava component and the relevant sample code
How to establish a WebDAV server in Win 8/7: Transfer from http://www.xitonghome.com/article/html/5461.html
First, you must install Internet Information Services (IIS) and WebDAV publishing. In Windows 7, click Start, enter Windows features, and then press ENTER. In Windows 8, on the Start screen, enter Windows features, select Settings on the right, and then select the shortcut that appears.
Be sure to choose from the following items:
Internet Information Services (IIS)
IIS Management Console
WebDAV Publishing
Windows authentication
Second, to turn on WebDAV publishing, you must open IIS Manager. In Windows 7, click Start, enter IIS, and then open the shortcut that appears. In Windows 8, on the Start screen, enter "IIS", and then open the shortcut that appears.
To configure Windows authentication, select "Default Web Site" and double-click the "Authentication" icon. The list of authentication types shown will appear based on the type you installed earlier, but if you are using IIS only for WebDAV, I recommend disabling anonymous and turning on Windows authentication.
Third, select Default Web Site again, double-click WebDAV Authoring Rules, and then tap Enable on the right. Then click on the "Add Authoring Rule" on the right to configure the permissions and options you want.
To test whether IIS and the Web server are running, open a browser and enter "localhost" and press ENTER.
If you have Windows authentication turned on, you will be prompted for your username and password, please enter your Windows account name and password here. If you're having trouble signing in, make sure your account name is correct--open the Computer Management console and check the local user list for confirmation.
Once the verification is complete, you will see the default IIS page, if you have not deleted or changed it.
To test if the WebDAV server is working, open a Command Prompt window and enter: NET use * http://localhost. It maps the network drive to your WebDAV folder and displays the files in your IIS Web server directory.
If you want to provide access to other places, you can add some virtual directories. Right-click "Default Web Site" and select "Add New Virtual Directory".
In order for you or others to access the WebDAV server share over the Internet, you must configure the firewall, open the "80" port for unencrypted access, open the "443" port for encrypted access, and configure the appropriate port for the router. When properly configured, to access WebDAV over the Internet, you want to use an Internet IP address or a domain name or host name.
When you use Windows authentication, your WebDAV password is encrypted, and if you choose to use normal 80 port HTTP, the rest of the session is sent in plaintext. However, you can also encrypt an entire session by turning on SSL encryption in IIS and using the HTTPS address when configuring/accessing the WebDAV share.
If you want to see your file list in the browser, open Directory browsing in IIS, select Default Web Site, double-click Directory Browsing, and click Enable on the right.
Windows 2003 Server R2 configuration WebDAV on IIS http://www.educity.cn/windows/351635.html
In general, file sharing is usually done via the file protocol, which is usually a common share of files, on the Internet, often using FTP or HTTP protocols. But the use of HTTP is generally only one-way sharing, not easy to upload files, the traditional use of FTP. However, Windows Server can also take advantage of WebDAV (Web-based Distributed Authoring and Versioning, Web-based Distributed Authoring and versioning) for file sharing.
WebDAV is a communication protocol based on. It adds some extensions (that is, some new methods have been added outside the HTTP standard methods of GET, post, head, etc.), allowing the application to write files directly to the Web server, and to lock the file when it is written, to unlock the file when it is finished, You can also support versioning of files. It is said to be expected to replace FTP as a standard way to move files over the Internet.
This article describes the specific methods for configuring WebDAV on Windows 2003 Server R2 IIS. WebDAV (webdistributedauthoringandversioning) extends the functionality of the HTTP1.1 Communication protocol, which allows users with the appropriate permissions to manage files within the WebDAV folder of the remote Web site directly through the browser and Network Places. We follow the steps below to illustrate how WebDAV features are used.
To start the WebDAV feature on a Web site
Create a WebDAV virtual directory?
WebDAV client settings?
WebDAV redirector?
Security policy for WebDAV?
1. Start the WebDAV feature on the site
For security reasons, IIS does not start the WebDAV feature by default, so you must activate it separately by starting IIS Manager, expanding the local computer, selecting Web Service Extensions, right-clicking WebDAV on the left of Figure 1, and selecting allow to start the WebDAV feature.
2. Create a WebDAV virtual directory
The functionality of WebDAV is implemented through a virtual directory, so you should first create a folder for the virtual directory, we set the folder name to WebDAV, and you can use a different name. Next we will create a virtual directory on the site, assuming that the site to launch the WebDAV feature is the "Default Web site."
Step 1 Select Start IIS Manager, expand the local computer, select Web site, right-click Default Web site, and select new → virtual directory.
Step 2 when the "Welcome to the Virtual Directory Creation Wizard" screen appears, click the Next button.
Step 3 in Figure 2, set the alias for this virtual directory (for example, WebDAV), and then select the Real folder that corresponds to this virtual directory.
Figure 2 Creating a WebDAV virtual directory
Step 4 Select the "Write" and "Browse" permissions as shown in Figure 3.
Figure 3 Setting access rights
Step 5 When the "You have successfully completed the Virtual Directory Creation Wizard" screen appears, click the Finish button.
3.WebDAV Client Settings
The WebDAV client computer must run the "WebClient" service, and Windows Server 2003R2 can select Start, right-click My Computer, select Computer Management, and then, as shown in Figure 4, check if the "WebClient" service has been started. If it is not already started, activate it by right-clicking the service and selecting "Start". If the service is disabled, it is first changed to "Automatic" or "manual" before it is activated.
Figure 4 Enabling the "WebClient" service
The user can connect to the WebDAV virtual directory on his computer through Internet Explorer or "My Network Places."
IE browser mode?
Start Internet Explorer, choose the File menu, select Open, then enter the URL and choose Open as Web folder, 5, enter the user name and password with permissions to connect to the WebDAV folder.
Figure 5 IE settings
After you see the screen shown in 6, you can access the files in this WebDAV folder, such as adding, modifying, and deleting files.
Figure 6 Using IE mode
How is My Network Neighborhood?
Take WindowsServer2003 as an example, choose start → Windows Explorer → My Network Places, and double-click Add My Network Places. In My Network Places, you will have an additional Internet connection (see Figure 7) Where users can click the connection to access files within the WebDAV folder, such as adding, modifying, and deleting files.
Figure 7 How are My network neighbors?
4.WebDAV Redirector (redirected)
WebDAV Redirector (redirect) is a remote file system based on a WebDAV communication protocol that allows WINDOWSSERVER2003, windowsxp clients to connect and access WebDAV folders using a mapped network drive. In Windows XP Professional, for example, you can connect to a WebDAV folder by opening Windows Explorer → tools → map network drives, specifying a drive of Z: The IP address of the \ \ web site \webdav or \ \ Computer name \webdav. The actual folder corresponding to the WebDAV virtual directory does not need to be set as a shared folder. Figure 8 is the screen that you see through Windows Explorer after the connection is successful.
Figure 8 WebDAV Redirector (redirect)
Description: A Web site that provides WebDAV functionality, must be a pure WebDAV site, you must clear all FrontPage-established headers, by right-clicking on the site, select "Properties" → "http Headers", and then clear all the headers in the custom HTTP header.
Security Policy for 5.WebDAV
To ensure file security within the WebDAV folder, you must set its security measures for the WebDAV virtual directory and its corresponding real folders. Permissions for the WebDAV virtual directory start IIS Manager, then right-click the WebDAV virtual directory, select Properties, and set the permissions as shown in Figure 9, where directory browsing allows users to see files within the WebDAV folder.
Figure 9 Setting security policy for WebDAV
If you choose Script Resource access, the user will have the ability to modify the pin in the Webadv folder (ScriptFile). In addition to the virtual directory permissions here, you also need to view NTFS permissions to determine whether users have permission to access files within the WebDAV folder. The NTFS permissions of the WebDAV folder give the user the appropriate NTFS permissions. First, set the "read" permission for the Everyone group, and then give the "write" permission to individual users, such as the one we gave the user "user" write. Select the method to authenticate the user to start IIS Manager, then right-click the WebDAV virtual directory, select Properties → directory security, click the Edit button at authentication and access control, and then select the validation method from figure 10来. Do not choose "Enable anonymous access" to prevent others from attacking you. Select the more secure authentication method at the bottom of the screen and select Integrated Windows Authentication.
Figure 10 Integrated Windows authentication
With WebDAV vs. ftp:
FTP needs to request an operating system account. WebDAV does not need to apply for any operating system account, it uses a set of security-perfect authentication mechanisms defined by itself.
All FTP data (including login information) is transmitted in clear text, encryption must be implemented by itself, for example: can be done by hand GPG, but it is not convenient after all. With WebDAV, you can use HTTPS to transfer data, and the encryption and decryption operations are done automatically at the lower level.
FTP Transfer data transfer efficiency is low, each transfer of a file needs to open a new TCP connection, and WebDAV transport all files require only one TCP connection.
FTP is not as easy to traverse firewalls as HTTP, and is much smaller than HTTP in the area of WAN applications. WebDAV has all the advantages of HTTP because it is HTTP-based.
The
FTP client tool is not easy to use with WebDAV client tools. You have just seen that the WebDAV server is configured, and accessing the Web folder through the Windows 2000/XP Web Folders is not much different from accessing the local folder. If your application supports the WebDAV protocol (for example, Word 2000), you can directly open the files in the Web folder and edit them, and then save them directly in the original Web folder.