caddy

A powerful, enterprise-ready, open source web server with automatic HTTPS, written in Go.

TLDR

Start Caddy in the foreground

$ caddy run
copy


Start Caddy with the specified Caddyfile
$ caddy run --config [path/to/Caddyfile]
copy


Start Caddy in the background
$ caddy start
copy


Stop a background Caddy process
$ caddy stop
copy


Run a simple file server on the specified port with a browsable interface
$ caddy file-server --listen :[8000] --browse
copy


Run a reverse proxy server
$ caddy reverse-proxy --from :[80] --to localhost:[8000]
copy

SYNOPSIS

caddy <command> [<args...>]

COMMANDS

These are available commands to use with caddy. See their manpages for usage and available flags.

adapt

Adapts a configuration to Caddy's native JSON. See caddy-adapt(1)

environ

Prints the environment. See caddy-environ(1)

file-server

Spins up a production-ready file server. See caddy-file-server(1)

fmt

Formats a Caddyfile. See caddy-fmt(1)

hash-password

Hashes a password and writes base64. See caddy-hash-password(1)

help

Shows help for a Caddy subcommand. See caddy-help(1)

list-modules

Lists the installed Caddy modules. See caddy-list-modules(1)

man

Print manual pages for Caddy. See caddy-man(1)

reload

Changes the config of the running Caddy instance. See caddy-reload(1)

reverse-proxy

A quick and production-ready reverse proxy. See caddy-reverse-proxy(1)

run

Starts the Caddy process and blocks indefinitely. See caddy-run(1)

start

Starts the Caddy process in the background and then returns. See caddy-start(1)

stop

Gracefully stops a started Caddy process. See caddy-stop(1)

trust

Installs a CA certificate into local trust stores. See caddy-trust(1)

untrust

Untrusts a locally-trusted CA certificate. See caddy-untrust(1)

validate

Tests whether a configuration file is valid. See caddy-validate(1)

version

Prints the version. See caddy-version(1)

DOCUMENTATION

Full documentation is available at: https://caddyserver.com/docs/

VERSION

2.4.5-1

BUGS

Report Bugs to: https://github.com/caddyserver/caddy

COPYRIGHT

(c) Matthew Holt and The Caddy Authors

Copied to clipboard