Fixed nginx conf issue

This commit is contained in:
2024-08-08 09:17:51 -04:00
parent 8c53b120b8
commit 4c7558c2d7
+6 -4
View File
@@ -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