You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/19 10:32:20 UTC

[GitHub] [apisix-java-plugin-runner] dingshijie opened a new issue #128: how can i jump to another IP port from Plugin ?

dingshijie opened a new issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128


   
   as `the path to the rewrite must start with '/'`
   https://github.com/apache/apisix-java-plugin-runner/issues/54
   
   that is to say now we can not jump to another IP port from Plugin ? Except rewrite path , has any other ways jump to another IP port?


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



[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046235055


   The selection of IP and port is implemented in APISIX. I don't know exactly what you mean by jumping.


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



[GitHub] [apisix-java-plugin-runner] dingshijie commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
dingshijie commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046394550


   > > rewrite host:port/path in java runner.
   > 
   > not support rewrite host: port in java runner.
   > 
   > > I don't know how to rewrite host in java runner .
   > 
   > you can try ` request.setHeader( "Host", "test.com");` to rewrite the `Host` header.
   
   config like this:
   {
       "uri": "/graphql",
       "name": "graphql-ext-plugin-pre-req",
       "plugins": {
           "ext-plugin-pre-req": {
               "conf": [{
                   "name": "AnalysisRequestFilter",
                   "value": "{}"
               }]
           }
       },
       "upstream": {
           "nodes": {
               "10.168.3.15:12:14561": 1
           },
           "type": "roundrobin"
       }
   }
   when exec AnalysisRequestFilter I want to rewite upstream nodes host,  i don't want to use 10.168.3.15:12:14561.
   


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



[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046434385


   > and i want use ext-plugin-pre-req AnalysisRequestFilter result in the new route rule to do some filter.
   
   not support yet


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



[GitHub] [apisix-java-plugin-runner] dingshijie commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
dingshijie commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046236902


   > The selection of IP and port is implemented in APISIX. I don't know exactly what you mean by jumping.
   
   rewrite host:port/path in java runner.
   now i only can rewrite path,I don't know how to rewrite host in java runner .


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



[GitHub] [apisix-java-plugin-runner] tzssangglass edited a comment on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
tzssangglass edited a comment on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046382779


   > rewrite host:port/path in java runner.
   
   not support rewrite host: port in java runner.
   
   > I don't know how to rewrite host in java runner .
   
   ~~you can try ` request.setHeader( "Host", "test.com");` to rewrite the `Host` header.~~


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



[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046397002


   > when exec AnalysisRequestFilter I want to rewite upstream nodes host, i don't want to use 10.168.3.15:12:14561.
   
   As I already said, this is not supported in java runner.


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



[GitHub] [apisix-java-plugin-runner] dingshijie commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
dingshijie commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046437485


   > > and i want use ext-plugin-pre-req AnalysisRequestFilter result in the new route rule to do some filter.
   > 
   > not support yet
   
   another question : 
   doc:  https://apisix.apache.org/zh/docs/apisix/admin-api/#body-%E8%AF%B7%E6%B1%82%E5%8F%82%E6%95%B0
   如果不同路由包含相同 uri,根据属性 priority 确定哪个 route 被优先匹配,值越大优先级越高,默认值为 0。
   
   Q:  如果同时匹配到多个route的时候,只会按照优先级最高的route配置执行 还是?


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



[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046382779


   > rewrite host:port/path in java runner.
   
   not support rewrite host: port in java runner.
   
   > I don't know how to rewrite host in java runner .
   
   you can try ` request.setHeader( "Host", "test.com");` to rewrite the `Host` header.


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



[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046234892


   no way in java runner.


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



[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046986901


   > Q: 如果同时匹配到多个route的时候,只会按照优先级最高的route配置执行 还是?
   
   ref: https://github.com/apache/apisix/blob/master/docs/en/latest/router-radixtree.md
   
   longest prefix match


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



[GitHub] [apisix-java-plugin-runner] dingshijie commented on issue #128: how can i jump to another IP port from Plugin ?

Posted by GitBox <gi...@apache.org>.
dingshijie commented on issue #128:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/128#issuecomment-1046399422


   > > when exec AnalysisRequestFilter I want to rewite upstream nodes host, i don't want to use 10.168.3.15:12:14561.
   > 
   > As I already said, this is not supported in java runner.
   
   has other ways ? i set a new route like      
   "plugins": {
        "proxy-rewrite": {
           "host": "10.168.3.15:12:14561"
       }
   }
   
   and i want use ext-plugin-pre-req AnalysisRequestFilter result in the new route rule to do some filter.
   
   
   


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