diff --git a/nginx/default.conf b/nginx/default.conf index 57e56a9..257709e 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -236,12 +236,12 @@ server { # FastCGI Cache Status Header ################# - add_header NPP-FastCGI-Cache $upstream_cache_status; + add_header NPP-FastCGI-Cache $upstream_cache_status always; ################# # Nginx Cache Purge ################# - location ~ /purge(/.*) { + location ~ ^/purge(/.*) { allow 127.0.0.1; allow 172.16.0.0/12; deny all;