diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua index 041a2d62..d0c3b320 100644 --- a/apisix/cli/ngx_tpl.lua +++ b/apisix/cli/ngx_tpl.lua @@ -502,6 +502,7 @@ http { set $upstream_host $http_host; set $upstream_uri ''; set $ctx_ref ''; + set $from_error_page ''; {% if enabled_plugins["dubbo-proxy"] then %} set $dubbo_service_name ''; diff --git a/t/APISIX.pm b/t/APISIX.pm index 68821bdb..388ade92 100644 --- a/t/APISIX.pm +++ b/t/APISIX.pm @@ -554,6 +554,7 @@ _EOC_ set \$upstream_host \$http_host; set \$upstream_uri ''; set \$ctx_ref ''; + set \$from_error_page ''; set \$upstream_cache_zone off; set \$upstream_cache_key '';