[blogs-web/fpm] Move upstream and map into http block



commit e41def8fda9dccd74f5a5051c88cd49677f9ce24
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon Oct 12 15:43:29 2020 +0200

    Move upstream and map into http block

 nginx.conf | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index 1cb74ce..2c00a24 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -7,19 +7,6 @@ events {
     worker_connections  1024;
 }
 
-upstream php-fpm {
-    server localhost:9000;
-}
-
-map $uri $blogname {
-    ~^(?P<blogpath>/[_0-9a-zA-Z-]+/)files/(.*) $blogpath;
-}
- 
-map $blogname $blogid {
-    default -999;
-    include /var/www/html/wp-content/uploads/nginx-helper/map.conf;
-}
-
 http {
     proxy_temp_path /tmp/proxy_temp;
     client_body_temp_path /tmp/client_temp;
@@ -43,6 +30,19 @@ http {
 
     #gzip  on;
 
+    upstream php-fpm {
+        server localhost:9000;
+    }
+    
+    map $uri $blogname {
+        ~^(?P<blogpath>/[_0-9a-zA-Z-]+/)files/(.*) $blogpath;
+    }
+     
+    map $blogname $blogid {
+        default -999;
+        include /var/www/html/wp-content/uploads/nginx-helper/map.conf;
+    }
+
     server {
         listen 8080 default_server;
         listen [::]:8080 default_server;


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