1. Caddy version (caddy version
):
2.2.1-1.fc33
2. How I run Caddy:
a. System environment:
Fedora Server 33
b. Command:
/usr/bin/caddy validate --config /etc/caddy/Caddyfile
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
http:// {
root * /usr/share/caddy
file_server
}
import Caddyfile.d/*.caddyfile
example.com {
root * /var/www
file_server browse
}
3. The problem I’m having:
http://example.com/ show the content of /usr/share/caddy
instead of /var/www
, although https://example.com/ works as expected.
4. Error messages and/or full log output:
5. What I already tried:
Changed http://
to :80
, but did not work
6. Links to relevant resources:
https://github.com/caddyserver/caddy/commit/32cafbb6309c8d78cc7e2f2a75def9c633944ef8