tokers commented on issue #10177:
URL: https://github.com/apache/apisix/issues/10177#issuecomment-1724990320

   The reason is that `remote_port` is the port for the TCP client, not a 
server port, and it's always picked by the kernel randomly. You can try to 
print the `remote_port` in log to see its values. I bet it won't be `9080`.
   
   As per your question, I think you should use the `$server_port` variable 
(which is also a built-in Nginx variable). 


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to