It’s been a while since I started using caddy v2 in production. Therefore I would like to show some caddy configuration examples that I also use by myself.
In the last caddy post I mentioned how to setup HTTP3, however the syntax has changed slightly.
Simple reverse proxy (to a specific port)
Serving a static page (html/css). In that case with gzip and extended Cache-Control.
Serving a PHP website.