snippetbashTip
caddy — An enterprise-ready open source web server with automatic HTTPS, written in Go. More information: <h
Viewed 0 times
commandcaddysourceclireadyopenwebenterprise
Problem
How to use the
caddy command: An enterprise-ready open source web server with automatic HTTPS, written in Go. More information: <https://caddyserver.com/docs/command-line>.Solution
caddy — An enterprise-ready open source web server with automatic HTTPS, written in Go. More information: <https://caddyserver.com/docs/command-line>.Start Caddy in the foreground:
caddy runStart Caddy with the specified Caddyfile:
caddy run --config {{path/to/Caddyfile}}Start Caddy in the background:
caddy startStop a background Caddy process:
caddy stopRun a simple file server on the specified port with a browsable interface:
caddy file-server --listen :{{8000}} --browseRun a reverse proxy server:
caddy reverse-proxy --from :{{80}} --to localhost:{{8000}}Code Snippets
Start Caddy in the foreground
caddy runStart Caddy with the specified Caddyfile
caddy run --config {{path/to/Caddyfile}}Start Caddy in the background
caddy startStop a background Caddy process
caddy stopRun a simple file server on the specified port with a browsable interface
caddy file-server --listen :{{8000}} --browseContext
tldr-pages: common/caddy
Revisions (0)
No revisions yet.