Global block git folders


(DenBeke) #1

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


(Matt Holt) #2

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


(Toby Allen) #3

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


(system) #4

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