[blogs-web/fpm] Add location block for blogs with custom domain



commit 5e1f547a394bf9f1804ae1be425ed4ae59a17add
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 13 13:02:57 2020 +0200

    Add location block for blogs with custom domain

 nginx.conf | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index 98432b6..a4587a5 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -82,8 +82,11 @@ 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;
         }
     
         if (!-e $request_filename) {


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