Nginx deny .git folder access



nginx.conf


location ~ /\.git.* {
deny all;
}



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *