Hello everyone, can someone help me solve a problem that I have regarding WebDAV on Windows 11 and https connection.
I'm trying to set up WebDAV only locally, I don't need access from the internet, just from my local network, but I can't seem to find a way to make it work fully.
The first thing that I'm having trouble with, is that I can't establish a secure connection (https), only http.
And the second thing is that when I try to connect an app from my phone to sync to my WebDAV server, it only transfers the data from the app to the server (inside the folder that I created), but it won't pull that data back to the app. In other words, it won't sync. I don't know if the problem is with the certificate or some permission that I need to enable or a Windows Feature that I need to enable or something else completely.
So I need your help with solving this problem.
Here is where I am now and what I've done to set up WebDAV on Windows 11:
1) Windows Features
2) IIS Manager
3) Creating a folder to share and adding it as a Virtual Directory in IIS
4) Enabling Directory Browsing
5) Accessing WebDAV from a browser with my local IP address, which is 192.168.1.10
This gave me access to my WebDAV server, I could see the files, but the connection was not secure, it was http, not https. Probably because of the Self-Signed certificate, but maybe I'm wrong.
I'm trying to set up WebDAV only locally, I don't need access from the internet, just from my local network, but I can't seem to find a way to make it work fully.
The first thing that I'm having trouble with, is that I can't establish a secure connection (https), only http.
And the second thing is that when I try to connect an app from my phone to sync to my WebDAV server, it only transfers the data from the app to the server (inside the folder that I created), but it won't pull that data back to the app. In other words, it won't sync. I don't know if the problem is with the certificate or some permission that I need to enable or a Windows Feature that I need to enable or something else completely.
So I need your help with solving this problem.
Here is where I am now and what I've done to set up WebDAV on Windows 11:
1) Windows Features
- I enabled Internet Information Services (by default it enabled Web Management Tools and World Wide Web Services) in Windows Features.
- Then I additionally enabled WebDAV Publishing in World Wide Web Services > Common HTTP Features
- And also enabled Basic Authentication in World Wide Web Services > Security
2) IIS Manager
- Inside IIS Manager I selected Default Web Site > WebDAV Authoring Rules, clicked on Enable WebDAV, then Add Authoring Rule and selected All users under "Allow access to this content to", and also checked Read, Source and Write under Permissions
- I went back to Default Web Site > Authentication, enabled Basic Authentication and disabled all others types (Anonymous Authentication and ASP .NET Impersonation)
- In Connections pane on the left, I now selected the root of the directory, I'll call it DESKTOP-PC, then went to Server Certificates > Create Self-Signed Certificate, entered a name (My Self-Signed Cert) and chose Personal
- Then I right clicked on Default Web Site > Edit Bindings... There was already http there, so I went to Add... > selected https, and selected the SSL certificate that I previously created
3) Creating a folder to share and adding it as a Virtual Directory in IIS
- I created a folder called WebDAVShare (located in C:\\WebDAVShare)
- Then I went to Properties > Security > Edit... > Add... and entered a username of my local Windows account (let's call it webdavuser), clicked on Check Names, it found it and wrote DESKTOP-PC\\webdavuser inside the box
- Then I selected that user in the Permissions window and gave it Full Control
- After that I went back to IIS Manager, right clicked on Default Web Site > Add Virtual Directory... > typed in an alias (for example: webdav) and selected the Physical path to the folder I just created
4) Enabling Directory Browsing
- In IIS Manager, I selected Default Web Site > Directory Browsing > Enable
5) Accessing WebDAV from a browser with my local IP address, which is 192.168.1.10
- In the browser's url field I entered
- It asked me for my credentials (Windows user credentials), which I entered, for a username I entered DESKTOP-PC\\webdavuser, and then I entered the password
This gave me access to my WebDAV server, I could see the files, but the connection was not secure, it was http, not https. Probably because of the Self-Signed certificate, but maybe I'm wrong.