You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Sarkie (via GitHub)" <gi...@apache.org> on 2024/05/23 15:28:46 UTC
[I] bug: http_x_forwarded_for doesn't seem right [apisix]
Sarkie opened a new issue, #11283:
URL: https://github.com/apache/apisix/issues/11283
### Current Behavior
When using http_x_forwarded_for in the logs, the order doesn't look to be right and also there's an issue with the comma+space aspect.
Unsure if this is an Nginx bug or an apisix bug
### Expected Behavior
When using http_x_forwarded_for you will get
https://en.wikipedia.org/wiki/X-Forwarded-For
"where the value is a comma+space separated list of IP addresses,"
X-Forwarded-For: client, proxy1, proxy2
### Error Logs
_No response_
### Steps to Reproduce
1. use http_x_forwarded_for in access_log_format
2. Be behind 1 or proxies
3. Expected result "client, proxy1, proxy2" in the logs
4. Actual result "proxy1,(NO SPACE)proxy2,(SPACE)client
5 Actual result 2 "proxy1,(NO SPACE)proxy1,(SPACE)client
### Environment
- APISIX version (run `apisix version`):3.8.0
- Operating system (run `uname -a`): Oracle Linux 8
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`): (Unsure, will get it, asap)
--
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-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: http_x_forwarded_for doesn't seem right [apisix]
Posted by "nfrankel (via GitHub)" <gi...@apache.org>.
nfrankel commented on issue #11283:
URL: https://github.com/apache/apisix/issues/11283#issuecomment-2137679791
Could you please make sure the bug is on Apache APISIX side by checking if you reproduce the bug on nginx, please?
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: http_x_forwarded_for doesn't seem right [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #11283: bug: http_x_forwarded_for doesn't seem right
URL: https://github.com/apache/apisix/issues/11283
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: http_x_forwarded_for doesn't seem right [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11283:
URL: https://github.com/apache/apisix/issues/11283#issuecomment-2921888342
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org