Fixed nginx conf issue
This commit is contained in:
@@ -20,17 +20,19 @@ server {
|
|||||||
set $header_host $host;
|
set $header_host $host;
|
||||||
|
|
||||||
access_by_lua '
|
access_by_lua '
|
||||||
ngx.log(ngx.ERR, "!!!!!!!!! proxy.conf !!!!!!!! ", domain)
|
|
||||||
local res = ngx.ctx.targetInfo
|
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
|
if not res then
|
||||||
ngx.log(ngx.ERR, "This should not happen", domain)
|
ngx.log(ngx.ERR, "This should not happen", domain)
|
||||||
ngx.exit(406)
|
ngx.exit(406)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local host = ngx.var.host
|
|
||||||
local uri = ngx.var.uri
|
|
||||||
local scheme = ngx.var.scheme
|
|
||||||
|
|
||||||
if scheme == "http" then
|
if scheme == "http" then
|
||||||
if res["forcessl"] == "true" then
|
if res["forcessl"] == "true" then
|
||||||
|
|||||||
Reference in New Issue
Block a user