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};