Fixed nginx conf issue
This commit is contained in:
@@ -60,8 +60,6 @@ http {
|
||||
local res, err = red:hgetall("proxy_Host_"..domain)
|
||||
local res = red:array_to_hash(res)
|
||||
|
||||
ngx.ctx.targetInfo = res
|
||||
|
||||
if not res["ip"] then
|
||||
if connect("/var/run/proxy_lookup.socket") then
|
||||
assert(socket:send(json.encode({domain = domain})))
|
||||
@@ -76,14 +74,13 @@ http {
|
||||
end
|
||||
end
|
||||
|
||||
ngx.ctx.targetInfo = res
|
||||
|
||||
if not res["ip"] then
|
||||
ngx.log(ngx.ERR, "no host found for key ", domain)
|
||||
ngx.exit(406)
|
||||
return false
|
||||
end
|
||||
|
||||
ngx.ctx.targetInfo = res
|
||||
ngx.ctx.toAllow = true;
|
||||
|
||||
if res['wildcard_parent'] then
|
||||
|
||||
Reference in New Issue
Block a user