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 2020/12/29 12:27:30 UTC

[GitHub] [apisix] azura27 opened a new issue #3155: request help: ADD rewrite in apisix, and zipkin does not work

azura27 opened a new issue #3155:
URL: https://github.com/apache/apisix/issues/3155


   ### Issue description
   Hello,  I wanner to realize the "rewrite" directive in Nginx with plugin manner on APISIX.
   But whther I set the priority of zipkin to higher or lower than that of rewrite(401), zipkin pending span does not generate.
   Would you please give some advice on this, thanks a lot.
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.0
   * OS: (cmd: `uname -a`)3.10.0-693.21.1.el7.x86_64
   * OpenResty / Nginx version: (cmd: `nginx -V` or `openresty -V`) 1.15.8.3
   


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

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



[GitHub] [apisix] spacewander commented on issue #3155: request help: ADD rewrite in apisix, and zipkin does not work

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3155:
URL: https://github.com/apache/apisix/issues/3155#issuecomment-752301759


   > For example:
   > I set a route with uri /temp.htm(B); and the other is /dev/temp.htm(A); and I add proxy-rewrite like below:
   > method 1: "proxy-rewrite":{"uri":"/temp.htm"}
   > method 2:"proxy-rewrite":{"regex_uri":["/dev/(.*)$","/$1"]}
   > both methods cannot get response from upstream of B;
   
   Why not set the same upstream for route A & B?


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

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



[GitHub] [apisix] spacewander commented on issue #3155: request help: ADD rewrite in apisix, and zipkin does not work

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3155:
URL: https://github.com/apache/apisix/issues/3155#issuecomment-752073907


   I suggest you to use the plugin `proxy-rewrite` to change the URL. It is quite weird to use Nginx's rewrite with Lua code.


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

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



[GitHub] [apisix] azura27 commented on issue #3155: request help: ADD rewrite in apisix, and zipkin does not work

Posted by GitBox <gi...@apache.org>.
azura27 commented on issue #3155:
URL: https://github.com/apache/apisix/issues/3155#issuecomment-752297673


   I learned this plugin for the last hour and test it, but I found it does not meet my demand, It just change the URI, but not redirect to the new upstream.
   For example:
   I set a route with uri /temp.htm(B); and the other is /dev/temp.htm(A); and I add proxy-rewrite like below:
   method 1: "proxy-rewrite":{"uri":"/temp.htm"}
   method 2:"proxy-rewrite":{"regex_uri":["\/dev\/(.*)$","\/$1"]}
   both methods cannot get response from upstream of B;
   Is this usage is right OR does this plugin support redirect of route?  
   Looking forwardx your response, thans again~


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

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



[GitHub] [apisix] azura27 commented on issue #3155: request help: ADD rewrite in apisix, and zipkin does not work

Posted by GitBox <gi...@apache.org>.
azura27 commented on issue #3155:
URL: https://github.com/apache/apisix/issues/3155#issuecomment-752067364


   route A rewrite  to B, zipkin plugin add on B is OK, but on A could not work, Is this normal? How can I change zipkin to A to make it effect?


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

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



[GitHub] [apisix] azura27 commented on issue #3155: request help: ADD rewrite in apisix, and zipkin does not work

Posted by GitBox <gi...@apache.org>.
azura27 commented on issue #3155:
URL: https://github.com/apache/apisix/issues/3155#issuecomment-752299587


   I also see there is redirect plugin, but it does not support Nginx "rewrite" directive's "last" or "break" flag, Is that right?


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

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



[GitHub] [apisix] azura27 commented on issue #3155: request help: ADD rewrite in apisix, and zipkin does not work

Posted by GitBox <gi...@apache.org>.
azura27 commented on issue #3155:
URL: https://github.com/apache/apisix/issues/3155#issuecomment-752303608


   I seems OK, maybe I consider too much.
   Thanks a lot~


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

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



[GitHub] [apisix] azura27 closed issue #3155: request help: ADD rewrite in apisix, and zipkin does not work

Posted by GitBox <gi...@apache.org>.
azura27 closed issue #3155:
URL: https://github.com/apache/apisix/issues/3155


   


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

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