liangliang4ward commented on issue #6296:
URL: https://github.com/apache/apisix/issues/6296#issuecomment-1042506665
> > 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
> > }
> > ```
>
> Yes, I have also used this plug-in, which can solve the current problem,
but I have a special situation: there are multiple nodes in my upstream nodes
(each node is a separate domain name, and node Only supports domain name
access), but the host in proxy_rewrite can only write one IP domain name. In
this case, apisix can only forward to one node, that is, the value of the host
of proxy_rewrite
You can try this method:

--
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]