caddy run --config /etc/caddy/Caddyfile

Category: Web Servers & Proxies

caddy run --config /etc/caddy/Caddyfile

Run Caddy with an explicit Caddyfile path

Tells Caddy which configuration file to load instead of looking for a Caddyfile in the current directory. This is how systemd and container setups point Caddy at /etc/caddy/Caddyfile. Omit the flag to use the default file discovery.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.