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 2021/06/21 04:02:37 UTC

[GitHub] [apisix] gy09535 opened a new issue #4452: request help: how apisix remove route prefix?

gy09535 opened a new issue #4452:
URL: https://github.com/apache/apisix/issues/4452


   ### Issue description
   for example :
   ```
   origin path is  /apisix/api/*
   upstream path should be : /api/*
   ```
   ![image](https://user-images.githubusercontent.com/15153469/122705456-5a760000-d288-11eb-89b8-23d77ee4677c.png)
   
   how can I use it?
   
   ### Environment
   
   Request help without environment information will be ignored or closed.
   
   * apisix version (cmd: `apisix version`):  2.5
   * OS (cmd: `uname -a`):
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   * luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
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] Yiyiyimu edited a comment on issue #4452: request help: how apisix remove route prefix?

Posted by GitBox <gi...@apache.org>.
Yiyiyimu edited a comment on issue #4452:
URL: https://github.com/apache/apisix/issues/4452#issuecomment-865245075


   > or you can try this https://github.com/apache/apisix/issues/4140#issuecomment-827507578
   
   Since at least three users asked about this afaik, maybe we could add "prefix-removing" as one of the route's arguments. Kong supported [this](https://docs.konghq.com/gateway-oss/2.4.x/admin-api/#request-body-3) which named `strip_path`.
   
   Or maybe we could add docs on route API about how to deal with this


-- 
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] tzssangglass commented on issue #4452: request help: how apisix remove route prefix?

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


   or you can try this https://github.com/apache/apisix/issues/4140#issuecomment-827507578


-- 
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] tokers commented on issue #4452: request help: how apisix remove route prefix?

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


   @gy09535 Please see http://apisix.apache.org/docs/apisix/plugins/proxy-rewrite/ for details.


-- 
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 #4452: request help: how apisix remove route prefix?

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


   Put "prefix-removing" in the route is confusing:
   1. our route matching is quite complex, path match is only part of it
   2. there will be too many places which can change the path of a 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.

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



[GitHub] [apisix] Yiyiyimu commented on issue #4452: request help: how apisix remove route prefix?

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






-- 
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] tokers commented on issue #4452: request help: how apisix remove route prefix?

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


   @gy09535 Please see http://apisix.apache.org/docs/apisix/plugins/proxy-rewrite/ for details.


-- 
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 #4452: request help: how apisix remove route prefix?

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


   Put "prefix-removing" in the route is confusing:
   1. our route matching is quite complex, path match is only part of it
   2. there will be too many places which can change the path of a 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.

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



[GitHub] [apisix] tokers closed issue #4452: request help: how apisix remove route prefix?

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


   


-- 
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] tzssangglass commented on issue #4452: request help: how apisix remove route prefix?

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


   or you can try this https://github.com/apache/apisix/issues/4140#issuecomment-827507578


-- 
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] Yiyiyimu commented on issue #4452: request help: how apisix remove route prefix?

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


   > Put "prefix-removing" in the route is confusing:
   > 
   > 1. our route matching is quite complex, path match is only part of it
   > 2. there will be too many places which can change the path of a route
   
   Got it. Thanks for the explanation! I didn't consider those aspects.
   I'll add it to FAQ


-- 
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] Yiyiyimu edited a comment on issue #4452: request help: how apisix remove route prefix?

Posted by GitBox <gi...@apache.org>.
Yiyiyimu edited a comment on issue #4452:
URL: https://github.com/apache/apisix/issues/4452#issuecomment-865245075


   > or you can try this https://github.com/apache/apisix/issues/4140#issuecomment-827507578
   
   Since at least three users asked about this afaik, maybe we could add "prefix-removing" as one of the route's arguments. Kong supported [this](https://docs.konghq.com/gateway-oss/2.4.x/admin-api/#request-body-3) which named `strip_path`.
   
   Or maybe we could add docs on route API about how to deal with this


-- 
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] Yiyiyimu commented on issue #4452: request help: how apisix remove route prefix?

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


   Since at least three users asked about this afaik, do we need to add "prefix-removing" as one of the route's arguments? 
   [Kong supported this](https://docs.konghq.com/gateway-oss/2.4.x/admin-api/#request-body-3) which named `strip_path`


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