diff --git a/ops/nginx_conf/proxy.conf b/ops/nginx_conf/proxy.conf index 5b66a0f..0c5a1ed 100644 --- a/ops/nginx_conf/proxy.conf +++ b/ops/nginx_conf/proxy.conf @@ -20,17 +20,19 @@ server { set $header_host $host; access_by_lua ' - ngx.log(ngx.ERR, "!!!!!!!!! proxy.conf !!!!!!!! ", domain) local res = ngx.ctx.targetInfo + local host = ngx.var.host + local uri = ngx.var.uri + local scheme = ngx.var.scheme + + ngx.log(ngx.ERR, "!!!!!!!!! proxy.conf !!!!!!!! ", domain) + if not res then ngx.log(ngx.ERR, "This should not happen", domain) ngx.exit(406) return false end - local host = ngx.var.host - local uri = ngx.var.uri - local scheme = ngx.var.scheme if scheme == "http" then if res["forcessl"] == "true" then