1. Introduction#
Most cloud storage services available on the market can be mounted in "Alist". Alist also supports the webdav protocol. This means that through Alist's webdav service, we can directly mount the cloud storage to the local system, allowing us to read and write files in the cloud storage just like a local disk.
However, during the local mounting process, whether adding a network location or mapping a network drive, errors such as incorrect file paths or network errors preventing access may occur, as shown below:
This article will briefly introduce how to mount local webdav in a Windows environment.
2. Cause of the Problem#
The reason for the above issues is actually very simple. The default WebClient service in Windows only supports the https protocol, while the locally set up webdav service and links are based on the http protocol, which leads to the failure of the mounting process.
For some advanced users, converting the webdav service to the https protocol is undoubtedly a safer and better choice. However, for those who only need to access it within a local network and have lower security requirements, the cost of upgrading to https may be too high. Therefore, enabling the built-in WebClient in Windows to support http may be a quicker and more convenient option.
3. Set WebClient to Allow http Link Mounting#
Step 1:#
Press the “Windows logo key” + “R” to open the Run window, type regedit
, and click OK to open the Registry Editor window.
Step 2:#
Navigate to the following path: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
. Double-click the BasicAuthLevel
entry in the right pane, change the value data to “2”, click OK, and close the Registry Editor.
Or import the registry file
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters]
"BasicAuthLevel"=dword:00000002
Step 3:#
Press the “Windows logo key” + “R” to open the Run window, type services.msc, and click OK to open the “Services” interface. Find the “WebClient” service, right-click to open the options menu, and select Restart. Wait a few seconds for it to complete, then close the “Services” interface.
After completing the above three steps, the WebClient service is now allowed to use the http protocol for mounting.
4. Mounting Test#
1. Map Network Drive#
2. Add Network Location#
As we can see, after modifying the registry, both mapping the network drive and adding the network location can correctly access the webdav service.