1. Caddy version (caddy version
):
Later / irrelevant
2. How I run Caddy:
I have not yet decided
a. System environment:
Debian 11
b. Command:
Paste command here.
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
Paste config here, replacing this text.
Use `caddy fmt` to make it readable.
DO NOT REDACT anything except credentials.
LEAVE DOMAIN NAMES INTACT.
Make sure the backticks stay on their own lines.
3. The problem Iām having:
Is it possible to have mixed http and https endpoints?
http://example.com/api/thing1/a
https://example.com/api/thing1/b
http://example.com/api/thing1/c
https://example.com/api/thing1/d
Is there some way to match only some endpoints?
http://example.com {
match /api/thing1/a
match /api/thing1/c
// all other api endpoints over https
}