Matcher protocol [solve]

1. The problem I’m having:

I’m trying to serve different respond regarding protocol used.
Probable mistaken configuration.

2. Error messages and/or full log output:

(matcher didn’t redirect correctly)

3. Caddy version:

v2.6.4 h1:2hwYqiRwk1tf3VruhMpLcYTg+11fCdr8S3jhNAdnPy8=

4. How I installed and ran Caddy:

a. System environment:

Docker / caddy:lastest

b. My complete Caddy config:

https://laptop.local:443 {
tls internal
log     {
        output stderr

@http3  protocol http/3.0
@http2  protocol http/2.0
@http1  protocol http/1.1

respond @http3  "HTTP3 OK " 200
respond @http2  "HTTP2 OK " 200
respond @http1  "HTTP1 OK" 200

fix 1

I find a way:

@http2 protocol http/3
@http2 protocol http/2
@http1 protocol http/1.1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.