The WebDav protocol allows us to create, modify, and move documents on a remote server using http and https with Windows user authentication. WebDav also provides better results when moving documents over the internet than the SMB protocol.
Adding the WebDav role in Windows Server
Open Server Manager (Server manager) and click Manage - Add Roles and Features.
Click Next.
Click Role-Based or feature-based installation.
Click Select a server from the server pool and select the server on which to install webdav. Then click Next.
Click Web Server (IIS) and then Next.
Click WebDAV Redirector and then Next.
Click Basic Authentication and Windows Authentication. Then click Next.
Click Install.
When installation finishes, you will see the following message. Click Close.
Open Add roles and features again as before and install WebDAV Publishing.
Creating a user and folder for WebDAV
To fully configure WebDAV in IIS, first create a user for authentication and a folder to store users' shared documents.
To do this, open Server Manager (Server manager) and click Manage - Computer Management.
Under Local Users and Groups - Users, add a new user by right-clicking - New User.
Enter the new user's details and click Create.
Now create the folder where the files will be stored and assign permissions to the new user.
To do this, go to C:\inetpub and create a new folder.
Use right-click - Properties.
Click Edit.
Click Add.
Find the user and click OK.
Assign permissions to the user and click Apply and ok until all windows are closed.
The user and folder are now created, so you can finish configuring WebDAV in IIS.
Configuring IIS to use WebDAV
In this step, enable WebDAV on the default site using the folder created earlier. Open Server Manager (Server manager) and click Manage - Internet information Services (IIS) Manager.
Expand the Sites folder and right-click default - Add Virtual Directory.
Select the directory created earlier and click OK.
Select the virtual directory and click WebDAV Authoring Rules.
On the right, click Enable WebDAV.
Click Add Authoring Rules.
Apply the following settings. Click OK.
Return to the virtual folder and click Authentication.
Enable Windows Authentications and disable the other options.
Return to the virtual folder and click Directory Browsing.
On the right, click Enable and select Time, Size, Extension and Date.
WebDAV is now installed and configured. All that remains is to go to a client workstation and map the network drive.
Mapping a network drive from a Windows 10 client
Before users can connect to the folder created in WebDAV, you must install the client. To do this, open a Powershell window with administrator privileges.
Run the following command:
# Install-WindowsFeature WebDAV-Redirector -RestartOnce the client is installed and the computer has restarted, go to Este equipo - Equipo - Conectar unidad de red.
Click the button outlined in red in the following screenshot.
Click Siguiente.
Select the option outlined in red and click Siguiente.
Enter the address http for your WebDav server and the configured virtual folder. The format is "http://dominio/nombre_carpeta". Click Siguiente.
Enter a name to display among your network drives and click Siguiente.
Click Finalizar.
If you go to Este equipo, under Ubicaciones de red you will see the WebDav server folder.
Everything is now ready for users to store their documents on a Windows server using WebDav.
We hope this tutorial has been helpful. If you have any questions about this or anything else related to your Clouding servers, please contact soporte@clouding.io We're here to help!