From c1a178e1f5af4807a6c019eef7117df47af92943 Mon Sep 17 00:00:00 2001 From: jvolkenant Date: Thu, 30 Jun 2016 21:36:51 -0700 Subject: [PATCH] replace return 403 with deny all for data subdir in nginx --- conf/nginx-alldomains.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conf/nginx-alldomains.conf b/conf/nginx-alldomains.conf index 199a7f87..291d34ed 100644 --- a/conf/nginx-alldomains.conf +++ b/conf/nginx-alldomains.conf @@ -27,8 +27,7 @@ alias /usr/local/lib/rainloop/; } location ~ /mail/data/.* { - # A ~-style location is needed to give this precedence over the next block. - return 403; + deny all; } location ~ /mail/.*\.php { # note: ~ has precendence over a regular location block