mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-04 19:58:18 +00:00
nginx config enhancements
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user