Webdav login is in a loop
This change unfortunately broke webdav access on my folders. Adding or creating a valid-user with htdigest creates the user with your newly created folder-name as the realm. But when you later on go to authenticate the server will not find any user that is allowed within the realm "Restricted Area", which is statically coded.
I had to change the code referred to in issue #4699 (closed) back to inserting $fn into the vhost configuration when adding a new webdav folder. This way at least it works. But of course it is fatal for the Apache service if someone tries to add Directory / as their shared folder.
Checking that the $fn variable is not empty or just / would be needed to prevent Apache from crashing at that point.