Global block git folders

Is it possible to have a global rule blocking access to the .git folder in any website/subdir?

Nope, there’s no global scope in the Caddyfile. But you can use snippets to reuse configuration!

There was a discussion at one point around a hide directive which perhaps could have defaults, but not currently available.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.