From 6222422a75bceccc0424a90b8671bc28b6cbcc65 Mon Sep 17 00:00:00 2001 From: liuyx Date: Sun, 4 Feb 2024 21:10:09 +0800 Subject: [PATCH] feat: update model --- ngx/etc/conf.d/model/site.cnf | 4 ++-- ngx/etc/conf.d/model/web.cnf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ngx/etc/conf.d/model/site.cnf b/ngx/etc/conf.d/model/site.cnf index 11d4180..1f7acde 100755 --- a/ngx/etc/conf.d/model/site.cnf +++ b/ngx/etc/conf.d/model/site.cnf @@ -1,4 +1,4 @@ -upstream {stream_name} { +upstream {name} { server localhost:{port} weight=1; } @@ -22,7 +22,7 @@ server { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; - proxy_pass http://{stream_name}; + proxy_pass http://{name}; } location = /favicon.ico { diff --git a/ngx/etc/conf.d/model/web.cnf b/ngx/etc/conf.d/model/web.cnf index 359949a..9f30872 100755 --- a/ngx/etc/conf.d/model/web.cnf +++ b/ngx/etc/conf.d/model/web.cnf @@ -7,8 +7,8 @@ server { # return 301 https://$server_name$request_uri; # } - access_log ./conf.d/{server}/access.log; - error_log ./conf.d/{server}/error.log; + access_log ./conf.d/{name}/access.log; + error_log ./conf.d/{name}/error.log; charset utf-8; server_name {server_name};