caddy/modules/caddyhttp/fileserver
diamondburned f9b54454a1
fileserver: Redirect within the original URL (#4179)
This commit changes the file_server directive to redirect using the
original request's URL instead of the possibly trimmed URL. This should
make file_server work with handle_path.

This fix is taken from mholt's comment in
https://caddy.community/t/file-servers-on-different-paths-not-working/11698/11.
2021-06-07 12:20:08 -06:00
..
testdata fileserver: Fix try_files for directories; windows fix (#3684) 2020-09-16 18:09:28 -06:00
browse.go fileserver: Redirect within the original URL (#4179) 2021-06-07 12:20:08 -06:00
browse_test.go fileserver: Share template logic for both templates and file_server browse (#4093) 2021-04-30 22:17:23 -04:00
browsetpl.go fileserver: Browse listing supports dark mode (#4066) 2021-03-19 11:41:02 -06:00
browsetplcontext.go fileserver: Share template logic for both templates and file_server browse (#4093) 2021-04-30 22:17:23 -04:00
browsetplcontext_test.go fileserver: Share template logic for both templates and file_server browse (#4093) 2021-04-30 22:17:23 -04:00
caddyfile.go fileserver: Add status code override (#4076) 2021-04-08 11:09:12 -06:00
command.go cmd: file-server: add --access-log flag (#3454) 2020-05-26 15:04:04 -06:00
matcher.go fileserver: Fix file matcher with empty try_files (#4147) 2021-05-04 09:49:13 -06:00
matcher_test.go fastcgi: Set PATH_INFO to file matcher remainder as fallback (#3739) 2020-12-04 17:12:13 -07:00
staticfiles.go fileserver: Redirect within the original URL (#4179) 2021-06-07 12:20:08 -06:00
staticfiles_test.go fileserver: Improve and clarify file hiding logic (#3844) 2020-11-02 14:20:12 -07:00