diff --git a/entrypoint.sh b/entrypoint.sh index e7a5ea8..641ffc9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -125,9 +125,11 @@ if [ -f /var/www/html/conf/nginx/nginx-site.conf ]; then } # deny access to Apache .htaccess on Nginx with PHP, # if Apache and Nginx document roots concur - location ~ /\.ht { - deny all; - } + location ~ /\.ht {deny all;} + location ~ /\.svn/ {deny all;} + location ~ /\.git/ {deny all;} + location ~ /\.hg/ {deny all;} + location ~ /\.bzr/ {deny all;} } EOF diff --git a/src/conf/nginx/default.conf b/src/conf/nginx/default.conf index 17d42a7..06dfb47 100644 --- a/src/conf/nginx/default.conf +++ b/src/conf/nginx/default.conf @@ -33,7 +33,9 @@ server { } # deny access to Apache .htaccess on Nginx with PHP, # if Apache and Nginx document roots concur - location ~ /\.ht { - deny all; - } + location ~ /\.ht {deny all;} + location ~ /\.svn/ {deny all;} + location ~ /\.git/ {deny all;} + location ~ /\.hg/ {deny all;} + location ~ /\.bzr/ {deny all;} } \ No newline at end of file