You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "akrjohn (via GitHub)" <gi...@apache.org> on 2023/03/22 02:10:34 UTC

[GitHub] [apisix] akrjohn commented on issue #9122: bug: plugins.proxy-rewrite does not work with path size > 2

akrjohn commented on issue #9122:
URL: https://github.com/apache/apisix/issues/9122#issuecomment-1478825414

   @soulbird here is the all the configuration
   
   routing
   
   {
     "uri": "/servicea/*",
     "name": "route1",
     "methods": [
       "GET",
       "POST",
       "PUT",
       "DELETE",
       "PATCH",
       "HEAD",
       "OPTIONS",
       "CONNECT",
       "TRACE",
       "PURGE"
     ],
     "plugins": {
       "proxy-rewrite": {
         "regex_uri": [
           "^/servicea/(.*)",
           "/${1}"
         ]
       }
     },
     "service_id": "452850410093281988",
     "status": 1
   }
   
   Service
   
   {
     "name": "servicea",
     "upstream_id": "452789772218270404"
   }
   
   upstream
   
   {
     "nodes": [
       {
         "host": "httpbin.org",
         "port": 80,
         "weight": 1
       }
     ],
     "timeout": {
       "connect": 6,
       "send": 6,
       "read": 6
     },
     "type": "roundrobin",
     "scheme": "http",
     "pass_host": "pass",
     "name": "httpbin",
     "keepalive_pool": {
       "idle_timeout": 60,
       "requests": 1000,
       "size": 320
     }
   }
   


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