caddy/modules/caddyhttp/fileserver
Matt Holt 1e8c9764df
file_server: Accept files args in one-liner of Caddyfile matcher (#3298)
Previously, matching by trying files other than the actual path of the
URI was:

    file {
        try_files <files...>
    }

Now, the same can be done in one line:

    file <files...>

As before, an empty file matcher:

    file

still matches if the request URI exists as a file in the site root.
2020-05-05 12:34:58 -06:00
..
testdata caddyhttp: Add split_path to file matcher (used by php_fastcgi) (#3302) 2020-04-27 14:46:46 -06:00
browse.go Export Replacer and use concrete type instead of interface 2019-12-29 13:12:52 -07:00
browse_test.go Part 1: Optimize using compiler's inliner (#2687) 2019-08-07 23:59:02 -06:00
browselisting.go Export Replacer and use concrete type instead of interface 2019-12-29 13:12:52 -07:00
browsetpl.go browse: allow filter init via filter query param (#3027) 2020-02-08 12:36:37 -07:00
caddyfile.go chore: make the linter happier (#3245) 2020-04-08 15:31:51 -06:00
command.go caddyhttp: Add nil check (fixes #3248 and fixes #3250) 2020-04-10 08:12:42 -06:00
matcher.go file_server: Accept files args in one-liner of Caddyfile matcher (#3298) 2020-05-05 12:34:58 -06:00
matcher_test.go caddyhttp: Add split_path to file matcher (used by php_fastcgi) (#3302) 2020-04-27 14:46:46 -06:00
staticfiles.go Export Replacer and use concrete type instead of interface 2019-12-29 13:12:52 -07:00
staticfiles_test.go v2: Make tests work on Windows (#2782) 2019-10-15 16:05:53 -06:00