1. The problem I’m having:
my.site {
root * /srv/{host}
file_server
@blabla path *.png *.jpg
header @blabla {
Content-Type "application/octet-stream"
}
header {
Access-Control-Allow-Origin "*"
somerando "mheader"
}
}
What I want to do is, *png and *jpg to NOT have header somerando: mheader
.
I’ve read header (Caddyfile directive) — Caddy Documentation and Request matchers (Caddyfile) — Caddy Documentation but can’t seem to solve this.
Even tried to use handle
unsuccessfully.
Purpose to solve this problem is to understand how caddy works, not necessarily solve it
3. Caddy version:
2.7.6
4. How I installed and ran Caddy:
Downloaded binary from github releases
a. System environment:
Fedora 39
b. Command:
caddy run