14 Aralık 2016 Çarşamba

Ubuntu server prevent serving .git directory

Add the followings into /etc/apache2/apache2.conf file

<Directorymatch "^/.*/\.git/"> 
Order deny,allow 
Deny from all
</Directorymatch>

Hiç yorum yok:

Yorum Gönder