1. The problem I’m having:
I want to put some users in default root for both filebrowse and webdav and then some other users in a different hardcoded path which they cannot get out from with filebrowser and webdav as well all of them sitting behind basic_auth
root would be c:\stuff and for each users it would be something like
c:\stuff\tier1{http.auth.user.id}, I tried various way but failed with many possible scenarios including using {http.auth.user.id}(not sure if its supported for caddy windows?) gave 405 errors depending on if I was using / or \ in path and *.
I think the most supported way is to use “/” but in windows paths tend to be "", however that’s a bit of a side track and perhaps for another topic issue?
3. Caddy version:
v2.9.0-beta.2.0.20241004162330-88fd5f3491ab h1:teEhIzRZ2/VXBUG55bfZEauwYTOspd5k+k0raIYwqCE=
4. How I installed and ran Caddy:
Made version with xcaddy
xcaddy build master --with github.com/caddy-dns/cloudflare --with github.com/caddyserver/transform-encoder --with github.com/WeidiDeng/caddy-cloudflare-ip --with github.com/porech/caddy-maxmind-geolocation --with github.com/mholt/caddy-webdav
a. System environment:
Win11
b. Command:
caddy run
d. My complete Caddy config:
domain.com {
@get method GET
root * C:\stuff
route {
basic_auth {
user password
}
file_server @get browse
webdav
}
}