Cannot adapt from vesion 1.0.3

1. Caddy version (caddy version):

Latest

2. How I run Caddy:

a. System environment:

Windows 10 Pro

b. Command:

caddy.exe run

d. My complete Caddyfile or JSON config:

{"apps":{"http":{"servers":{"srv0":{"listen":[":443"],"routes":[{"match":[{"host":["test.aelno.com"]}],"handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"vars","root":".\\webs\\test"}]},{"handle":[{"handler":"headers","response":{"deferred":true,"delete":["Server"]}}],"match":[{"path":["/"]}]}]}],"terminal":true}]}}}}}

3. The problem Iā€™m having:

Adapt command does not work, trying to adapt from this (coming from 1.0.3):

https://test.aelno.com {
header / -Server
root .\webs\test
}

4. Error messages and/or full log output:

ERR_SSL_PROTOCOL_ERROR

5. What I already tried:

Looking at the non existing documentation for the v2.

Adapt converts a valid configuration to json; but a v1 caddyfile is not a valid v2 caddyfile.

The changes you need to make are documented here.

Paul

.

3 Likes

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