Curl localhost:2019/config return <a href="/config/">Moved Permanently</a>

1. Caddy version (caddy version):

v2.2.1 h1:Q62GWHMtztnvyRU+KPOpw6fNfeCD3SkwH7SfT1Tgt2c=

2. How I run Caddy:

caddy start

a. System environment:

Ubuntu 20.04.1

b. Command:

curl localhost:2019/config

c. Service/unit/compose file:


d. My complete Caddyfile or JSON config:


3. The problem I’m having:

I return Moved Permanently
I expect it return json config

4. Error messages and/or full log output:


5. What I already tried:


6. Links to relevant resources:

The response is correct.

To clarify, you should request localhost:2019/config/, note the trailing slash.

1 Like

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