[blogs-web/fpm] Disable logs for /files again



commit 6194ea2a1e20d4043a86e9f9ae77baef1027cb69
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 13 13:26:08 2020 +0200

    Disable logs for /files again

 nginx.conf | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/nginx.conf b/nginx.conf
index a4587a5..198b36c 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -82,11 +82,15 @@ http {
         location ~ ^(/[^/]+/)?files/(.+) {
             try_files /wp-content/blogs.dir/$blogid/files/$2 /wp-includes/ms-files.php?file=$2 ;
             expires max;
+            access_log off;
+            log_not_found off;
         }
 
         location ~ ^/files/(.*)$ {
             try_files /wp-content/blogs.dir/$blogid/$uri /wp-includes/ms-files.php?file=$1 ;
             expires max;
+            access_log off;
+            log_not_found off;
         }
     
         if (!-e $request_filename) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]