1. Caddy version (caddy version
): 2.4.4
2. How I run Caddy:
Caddy run
a. System environment:
Ubuntu 20.04.3
b. Command:
sudo systemctl reload caddy
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
{
email chehinjuan@gmail.com
}
(static) {
@static {
file
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.json
}
header @static Cache-Control max-age=5184000.
}
(segurity) {
header {
# enable HSTS
Strict-Transport-Security max-age=31536000;
# disable clients from sniffing the media type
X-Content-Type-Options nosniff
# keet referrer data off HTTP connections
Referrer-Policy no-referrer-when-downgrade
}
}
3. The problem I’m having:
Hello, I am trying to run “sudo systemctl reload caddy” but I get the following error. My hrothgar.conf file is
hrothgar.learn-code.ca {
encode zstd gzip
import static
import securityroot * /var/www/hrothgar file_server
log {
output file /var/logs/…
format single_field common_log
}
}