spacewander commented on issue #6296:
URL: https://github.com/apache/apisix/issues/6296#issuecomment-1041046313
> I had the same problem today;
>
> upstream services use web protection,can't direct access use ip.
>
> I use `proxy rewrite plugin` to solve:
>
> ```sql
> {
> "uri": "/hello",
> "methods": [
> "POST"
> ],
> "plugins": {
> "proxy-rewrite": {
> "host": "xxx.domain.xxx:85",
> "scheme": "http"
> }
> },
> "upstream": {
> "nodes": [
> {
> "host": "xxx.domain.xxx",
> "port": 85,
> "weight": 100
> }
> ]
> },
> "status": 1
> }
> ```
Could you try `pass_host = node` in the upstream? It's expected to modify
the host according to the node's host.
--
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]