The v1 docs have this:
To hide the existence of multiple folders:
status 404 {
/hidden
/secrets
}
What is the equivalent in Caddy v2?
The v1 docs have this:
To hide the existence of multiple folders:
status 404 {
/hidden
/secrets
}
What is the equivalent in Caddy v2?
Hi, welcome Michael –
That’d be the respond
directive!
respond /hidden/* 404
respond /secrets/* 404
Please see our upgrade guide, which answers exactly your question: Upgrading to Caddy 2 — Caddy Documentation
Thanks! Looking at the upgrade guide now.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.