Fixed nginx conf issue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user