Very happy filebrowser 2.0 release.
Tracked web requests.
log stdout
The difference is resource becomes resources .
After modifying rewrtie, the home page got a black screen and could not do anything.
It seems that rewrite won’t jump?
Folder structure: C:…\Desktop\www\test, All the files needs to share are in test folder.
rewrite {
if {path} ends_with resources/
to /api/resources/test
}
rewrite {
if_op and
if {path} has resources
if {path} not_ends_with resources/
if {path} not_has test
to /forbidden
}
I need these rewrites to force the filebrowser directory to be restricted to the /test/ directory, because the filebrowser permissions are very high, and the admin permissions can control the entire server.
Just change the directory range in the settings, fill in the absolute path, you can read and write to the server’s system directory or root directory. It is not controlled by the root setting of the caddyfile at all.
These two very simple path rewrites, no problems with v1 support.