crazyMonkey1995 opened a new issue, #7011: URL: https://github.com/apache/apisix/issues/7011
### Current Behavior Recently, I upgraded apisix with the latest code, and found that there was an error in converting http to https. When redirecting, I always bring a port 80. It should be caused by this changeļ¼https://github.com/apache/apisix/pull/6686/files#r867816800 Maybe `set $var_x_forwarded_port $server_port;` in ngx_tpl.lua conflicts with `local ret_port = tonumber(ctx.var["var_x_forwarded_port"])` in redirect.lua ### Expected Behavior port changed from 80 to 443 ### Error Logs _No response_ ### Steps to Reproduce add redirect and set http_to_https to true ### Environment - APISIX version (run `apisix version`): master - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
