How can I serve a sub directory with listings (i.e. browse enabled) while serving unlisted files at the root level in Caddy v2?
See the config I came up below. This just ends up redirecting me to the second server (:8811) when browsing to /public. Another approach I tried was to use the uri directive inside the file_server directive, but this (perhaps obviously) is not possible as uri can’t be used as a sub-directive in that context.
Since this is more of a general question I’ll skip detailing my exact environment but I am running the official docker image (caddy/caddy:2.0.0-rc.3-alpine).
Combined with mounting the directory into the container like this: -v /srv/public_files:/srv/public_files/public:ro this works fine for me but is not all that pretty.