deny .git

This commit is contained in:
Christoph Haas 2019-01-02 12:05:34 +01:00
parent fa0516327e
commit b578e567ac

View File

@ -26,6 +26,10 @@ server {
deny all; deny all;
} }
location ~ /\.git {
deny all;
}
location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {
root /var/www/letsencrypt/; root /var/www/letsencrypt/;
log_not_found off; log_not_found off;