When I have multiple sites running, can I pause a site, keep its configuration, and start it again next time
What do you mean by “pause” a site? What should the behavior be if a client requests that site?
You can comment it out in your config:
But yeah, like Matt said, I don’t really understand what you mean. Please be more specific about what behaviour you expect to see.
When the site is paused, I want users to return another custom HTML instead of normal HTML when requesting the site.
When the site is paused, I want users to return another custom HTML instead of normal HTML when requesting the site
We don’t know what you mean by “paused” though. What triggers that? What would the condition be in Caddy? Please be specific.
You could add something like this:
respond "We are on pause."
Yes, that’s a good idea, thanks for your help!