diff --git a/etc/nginx/includes/rules_fastcgi_cache.conf b/etc/nginx/includes/rules_fastcgi_cache.conf index 6dc67fc..7520192 100644 --- a/etc/nginx/includes/rules_fastcgi_cache.conf +++ b/etc/nginx/includes/rules_fastcgi_cache.conf @@ -68,10 +68,10 @@ if ($cookie_woocommerce_items_in_cart = "1") { set $skip_cache 1; } - ## Purging FastCGI cache. location ~ /purge(/.*) { access_log off; + log_not_found off; fastcgi_cache_purge FASTCGICACHE "$scheme$request_method$host$request_uri"; return 301 $scheme://$server_name; allow 127.0.0.1; diff --git a/etc/nginx/includes/rules_restriction.conf b/etc/nginx/includes/rules_restriction.conf index eb19fe8..7fd275f 100644 --- a/etc/nginx/includes/rules_restriction.conf +++ b/etc/nginx/includes/rules_restriction.conf @@ -76,9 +76,14 @@ location ~* ^/wp-content/backup-db/ { # Deny access to scripts in site files directory. location ~ ^/sites/.*/private/ { deny all; + access_log off; + log_not_found off; } + location ~ ^/sites/[^/]+/files/.*\.php$ { deny all; + access_log off; + log_not_found off; } # Deny access to "hidden" files and directories whose names begin with a