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