This example goes step-by-step through the setup of a WebDAV Server installation on Windows Server 2019. The first part explains installing the IIS Web and WebDAV Server. The second and third parts describe setting up the users and folders for WebDAV. The fourth part helps set up the Let's Encrypt SSL installation.
1. IIS en WebDAV installation
To receive messages from the Internet, a Web server must be available. Windows uses the IIS Web server for this purpose. This can be installed by going to [Server Manager]→[Add roles and features].
1. Select [Installation Type]→[Role-based or feature-based Installation].
2. Select [Server selection] the server on which WebDAV needs to be installed.
3. Select [Server Roles]→[Web Server (IIS)](Figure 1)

Figure 1: Add the IIS Web Server
4. Select [Next] to [Web Server Role (IIS)]→[Role Services]
5. Select [WebDav Publishing] under [Webserver IIS]→[WebServer]→[Common HTTP Features](Figure 2)

Figure 2: Add WebDAV to the IIS Web Server
6. Select [Basic Authentication] and [IP and Domain restrictions] under [WebServer IIS]→[WebServer]→[Security](Figure 3)

Figure 3: Add basic Authentication, and IP and Domain Restrictions to the IIS Web Server
7. Click through to the end of the wizard and install the IIS Web server. After this, the options for the next step are available.
Now that the IIS Web Server is installed, we can install the parts for the WebDAV Server. Go to [Server Manager]→[Add roles and features]. Click through in the wizard like the previous step and select the following items in the [Server Roles]:
Basic Authentication ensures, together with the IP and Domain Restrictions, that Fledge can make a connection with the Web Server safely. For a safe connection, SSL is also required!
If multiple IIS Websites are running, for example, for a website, then WebDAV must be disabled there. Multiple WebDAV servers can interfere with each other. Disabling can be done through the IIS Settings by clicking on Disable WebDAV. Unfortunately, disabling WebDAV does not always work well. The forced disable for WebDAV can be done by using the following web.config:
Listing 1: web.config that WebDAV disables
2. Configure users for WebDAV
This guide assumes that the server on which the users are defined is a Domain Controller. If this has yet to be set up, for example, with a new Windows Server Installation, below is a good tutorial:
https://msftwebcast.com/2019/03/step-by-step-guide-how-to-setup-active.html
On the Windows server, users must be set up to be able to access the disks within the company and the WebDAV server. To do this, a group (WebDavGroup) and a user will be created to give Fledge access to WebDAV. Per company, however, the setup of users will vary. The example that follows is an example of an empty server with no existing users. The system administrator will need to set up which users can or cannot access the WebDAV server.
Fledge needs only one user to log in. The permissions as set within Fledge are also applied to these files. If an extensive rights structure exists within the network/company, it may be desirable to keep it the same.
First, a group needs to be created for all WebDAV users. Through this group, rights can be assigned to the users who are allowed to use WebDAV. In the Server Manager, go to →[Tools]→[Active Directory Users and Computers]. In the folder menu on the left side of the screen, there is a Users folder. In this folder, the group WebDavUsers should be created. This can be done by clicking on the icon in the taskbar. Under [Group name], insert WebDavUsers (Figure 4).
_

Figure 4: Create a WebDAV group inside the Active Directory_
Now that we have a group, we can add users to it. In this example, we are adding a single user. We will use the same screen as when adding the group. A new user can be added using the Create New User icon. For the example user, we will enter WebDAV in [Full name] and as [User logon name] webdav (Figure 5).

Figure 5: Create new user
Double-clicking on the WebDAV user opens the properties of the WebDAV user. Here, a new group needs to be added, the WebDavUsers group (Figure 6).

Figure 6: Add user to the WebDav group
3. Creating Folders and adding rights
Now that we have created the group and user, we can create the folders where the files to be shared should go. On these folders, give the group WebDAV rights to read and write to the files. For this example, we'll use the folder C:\inetpub\webdav. We create it in Windows Explorer (Figure 7)

Figure 7: WebDAV folder in inetpub
We go to Sites in the Internet Information Services Manager. To be found under the Tools menu of the Server Manager. In the examples, the default website is used, but this can cause conflicts with an Exchange server. Therefore, create a new website with the name webdav. First, go to the Sites in the left panel and click on [Add Website].

Figure 8: Website overview, Add Website
Fill in the relevant details for the WebDAV site. Select the Default Web Site and then click View Virtual Directories in the Actions bar. (Figure 9) Right-click on the overview of the virtual directories and then click [Add Virtual Directories]. (Figure 10)

Figure 9: Navigate to the virtual directory page

Figure 10: Right click on add virtual directory
We are now going to look up a folder in the network or on the local disk, which we will add as a virtual folder in the WebDAV Server. In this case, the physical folder is on the C:drive. This could also be a network location.
The authentication used by Fledge to connect is Basic Authentication. The other authentication systems must be disabled (Anonymous Authentication). With the WebDAV website selected, click on [Authentication] (Figure 13).
Caution! Basic Authentication is not safe to use over an HTTP connection. SSL must be enabled to use Basic Authentication securely. This is covered later in the guide.

Figure 11: Add a virtual folder

Figure 12: Click on the Authentication at the WebDAV website

Figure 13: Turn on Basic Authentication
Now that we have a virtual directory containing the files, the permissions for the WebDAV user need to be set properly. We do this through the Authoring Rules. Click on WebDAV in the Connections panel on the left side. Now the option WebDAV Authoring is shown between the icons. Double-click the icon; now the Authoring Rules panel opens. If the Authoring Rules icon is not visible, WebDav Publishing still needs to be added via [Server Manager] → [Add roles and features]. The group that should have permissions to read in this folder is the WebDav group.

Figure 14: Open the WebDAV Authoring rules page

Figure 15: Add an Authoring rule

Figure 16: Read & write rights for the WebDav group
In addition to the authoring rule, which is created for the WebDAV server, the user also needs file system permissions. These NTFS permissions allow the user to access the files and also access them over the local network.

Figure 20: Turn read & write right on for the WebDAV Group
If the permissions are properly applied, the WebDAV group has read and write permissions on the WebDAV folder

Figure 21: The rights when they are given to the user
Let's Encrypt voor Windows Server
To install an SSL certificate, an SSL certificate can be purchased from an Internet service provider of your choice. For a free certificate, Let's Encrypt can be used. The following URL links to a tutorial for installing Let's Encrypt for Windows:
https://miketabor.com/how-to-install-a-lets-encrypt-ssl-cert-on-microsoft-iis/.
You can bind the SSL certificate by clicking on the website and navigating to 'bindings' under actions on the right side of the screen.
After binding the certificate, you need to whitelist Fledge by clicking on the website and navigating to:
1. IP Address and Domain Restrictions → Add Allow Entry → 62.165.74.125.
2. IP Address and Domain Restrictions → Edit Feature Settings → “Access for unspecified clients” → Deny