mirror of
https://github.com/jkaninda/nginx-php-fpm.git
synced 2025-12-06 13:39:42 +01:00
Merge branch '8.0' into 8.1
This commit is contained in:
@@ -125,9 +125,11 @@ if [ -f /var/www/html/conf/nginx/nginx-site.conf ]; then
|
|||||||
}
|
}
|
||||||
# deny access to Apache .htaccess on Nginx with PHP,
|
# deny access to Apache .htaccess on Nginx with PHP,
|
||||||
# if Apache and Nginx document roots concur
|
# if Apache and Nginx document roots concur
|
||||||
location ~ /\.ht {
|
location ~ /\.ht {deny all;}
|
||||||
deny all;
|
location ~ /\.svn/ {deny all;}
|
||||||
}
|
location ~ /\.git/ {deny all;}
|
||||||
|
location ~ /\.hg/ {deny all;}
|
||||||
|
location ~ /\.bzr/ {deny all;}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ server {
|
|||||||
}
|
}
|
||||||
# deny access to Apache .htaccess on Nginx with PHP,
|
# deny access to Apache .htaccess on Nginx with PHP,
|
||||||
# if Apache and Nginx document roots concur
|
# if Apache and Nginx document roots concur
|
||||||
location ~ /\.ht {
|
location ~ /\.ht {deny all;}
|
||||||
deny all;
|
location ~ /\.svn/ {deny all;}
|
||||||
}
|
location ~ /\.git/ {deny all;}
|
||||||
|
location ~ /\.hg/ {deny all;}
|
||||||
|
location ~ /\.bzr/ {deny all;}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user