[blogs-web/fpm] Add map for $http_host
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blogs-web/fpm] Add map for $http_host
- Date: Tue, 13 Oct 2020 10:20:46 +0000 (UTC)
commit 33ca07bffe30a44fc5a0cece60c558c949a794af
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Oct 13 12:20:32 2020 +0200
Add map for $http_host
nginx.conf | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/nginx.conf b/nginx.conf
index d61afef..889644e 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -38,11 +38,16 @@ http {
~^(?P<blogpath>/[^/]+/)files/(.*) $blogpath;
}
- map $blogname $blogid {
+ map $blogname $tmp_blogid {
default -999;
include /var/www/html/wp-content/uploads/nginx-helper/map.conf;
}
+ map $http_host $blogid {
+ default $tmp_blogid;
+ 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]