mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-23 20:54:31 +08:00
@@ -11,6 +11,11 @@ location ~ ^/sites/[^/]+/files/.*\.php$ {
|
|||||||
# Drupal: deny php in vendor
|
# Drupal: deny php in vendor
|
||||||
location ~ /vendor/.*\.php$ {
|
location ~ /vendor/.*\.php$ {
|
||||||
deny all;
|
deny all;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Drupal: handle private files
|
||||||
|
location ~ ^(/[a-z\-]+)?/system/files/ {
|
||||||
|
try_files $uri /index.php?$query_string;
|
||||||
}<span ng-if="isLimitReq()">
|
}<span ng-if="isLimitReq()">
|
||||||
|
|
||||||
# Drupal: throttle user functions
|
# Drupal: throttle user functions
|
||||||
|
Reference in New Issue
Block a user