I’m trying to use a request matcher (@browseable) to limit the file indexing capabilities of file_server to a specific path (/files*). But the only thing I get is a blank browser window… no file indexing.
4. Error messages and/or full log output:
No error messages.
5. What I already tried:
I tried various combinations of Caddyfile settings… nothing worked. Even the simplest config i could think of:
I tried a few things, I think this is something like that you want (with a bonus):
mydomain.com {
[...] # the rest of your config
handle /files* {
root * /var/www/data
file_server browse
}
}
If I got this right : you can browse the /files path and define any physical root you want (I take the directory /var/www/data which has to contain a /files directory with all files inside).
I hope it can help!
(Wait for a confirmation as I am also a beginner )