DEV Community

Discussion on: Please remove that .git folder

Collapse
 
mikcat profile image
mikcat

I'm used to add this to the main apache config:

<DirectoryMatch "/\.git">
   Require all denied
</DirectoryMatch>
Enter fullscreen mode Exit fullscreen mode
Collapse
 
po0q profile image
pO0q 🦄 • Edited

EDIT: your example is better than mine.

Some comments have been hidden by the post's author - find out more