Fix nginx permission

This commit is contained in:
2022-07-01 19:17:19 +02:00
parent 8070b845b4
commit 810a1eafde
2 changed files with 10 additions and 6 deletions

View File

@@ -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

View File

@@ -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;}
}