Rollbacks
How to undo a change safely
Before every change
Copy the file or directory you are about to edit with a dated name, for example Caddyfile.bak-2026-11-30.
Undo
- Put the copy back in place.
- Validate the configuration if the service supports it.
- Reload or restart the service.
Static sites
Static sites such as this one are replaced as a whole directory. Keep the previous directory next to the new one and switch back by renaming.