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 08:37:37 UTC

[GitHub] [apisix] MirtoBusico commented on issue #6381: equest help: how to setup proxy-rewrite in dashboard?

MirtoBusico commented on issue #6381:
URL: https://github.com/apache/apisix/issues/6381#issuecomment-1045968361


   > @MirtoBusico With the above log, we cannot check where the `404` generates, it might be returned by upstream or by APISIX itself, could you try to send a request to APISIX by `curl` utility, so that we can get the 404 response body.
   > 
   > If the response body likes "{"error": "404 Route Not Found"}" then 404 was generated by APISIX or the it should be generated by the backend.
   > 
   > And I check out the new URL you set is `/*`, this makes APISIX converting the URI to `/*` and this maybe the reason that your backend returning 404.
   
   Hi @tokers I think that the problem is exactly  the wrong rewrited uri
   
   Seems that "https://www.m01.net/pres/headers" is rewrited in "https://www.m01.net/*"
   Instead I'm trying to translate "https://www.m01.net/pres/headers" into "https://www.m01.net/headers"
   
   I just want to remove the "/pres" prefix so that when arrive an url containing "/pres/x/y/z" the upstream will receive "/x/y/z/"
   
   What is the correct rewrite uri syntax?
   
   
   


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