1. Output of caddy version
:
unknown
2. How I run Caddy:
caddy run
b. Command:
caddy run
d. My complete Caddy config:
localhost
templates
file_server
3. The problem I’m having:
attempting to go into a directory with the default caddy website’s markdown directives, aka
{{$path := splitList "/" .OriginalReq.URL.Path}}
{{$mdfn := default "index" (slice $path 1 | join "/")}}
{{$mdfp := printf "/md/%s.md" $mdfn }}
and so i try to go into say, about
which leads to about.md
, and none results in index
, which ends up with index.md
. i have a directory called extra
that has index.md
inside it, however when i go to visit extra
, it leads to extra/.md
.
i have html i want to include in the markdown, which is handled with index.html
and markdown
via the directives i used.
4. Error messages and/or full log output:
2022/12/26 18:00:43.713 ERROR http.handlers.reverse_proxy aborting with incomplete response {"error": "context canceled"}
5. What I already tried:
- using the
ext
ortry_files
directives, which won’t work for my setup