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/10/27 15:00:40 UTC

[GitHub] [apisix] thekingofworld opened a new issue #2542: request help: configure route to only execute plugins

thekingofworld opened a new issue #2542:
URL: https://github.com/apache/apisix/issues/2542


   ### Issue description
   I want configure a route to only execute plugins: 
   ```
   curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PATCH -d '
   {
       "plugins": {
           "cgi-proxy": {
           }
       },
       "uri": "/cgi-proxy"
   }'
   ```
   But an error occurred while requesting
   ![image](https://user-images.githubusercontent.com/8169665/97319518-effef280-18a7-11eb-961d-b7a8e2b290c4.png)
   ### Environment
   
   Can anyone help? thx
   * apisix version (cmd: `apisix version`): 
      2.0
   * OS:
      mac
   


----------------------------------------------------------------
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] thekingofworld closed issue #2542: request help: configure route to only execute plugins

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


   


----------------------------------------------------------------
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] thekingofworld edited a comment on issue #2542: request help: configure route to only execute plugins

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


   It seems we don’t have to configure upstream.
   ![image](https://user-images.githubusercontent.com/8169665/97390355-90d8c680-1917-11eb-878b-ad7772ec8870.png)


----------------------------------------------------------------
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] thekingofworld commented on issue #2542: request help: configure route to only execute plugins

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


   ![image](https://user-images.githubusercontent.com/8169665/97390355-90d8c680-1917-11eb-878b-ad7772ec8870.png)
   It seems we don’t have to configure upstream.


----------------------------------------------------------------
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] lilien1010 commented on issue #2542: request help: configure route to only execute plugins

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


   You need specific a upstream in the route, with a upstream or a upstream_id.


----------------------------------------------------------------
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] Miss-you commented on issue #2542: request help: configure route to only execute plugins

Posted by GitBox <gi...@apache.org>.
Miss-you commented on issue #2542:
URL: https://github.com/apache/apisix/issues/2542#issuecomment-718870745


   > cgi-proxy
   
   cgi-proxy should be a custom plugin.
   CGI is an internal Tencent term that uses apache httpd to provide http services which use CGI.


----------------------------------------------------------------
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] membphis commented on issue #2542: request help: configure route to only execute plugins

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


   what is the plugin `cgi-proxy`? do you set any upstream object in this plugin?


----------------------------------------------------------------
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] Miss-you commented on issue #2542: request help: configure route to only execute plugins

Posted by GitBox <gi...@apache.org>.
Miss-you commented on issue #2542:
URL: https://github.com/apache/apisix/issues/2542#issuecomment-718873618


   > ### Issue description
   > I want configure a route to only execute plugins:
   > 
   > ```
   > curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PATCH -d '
   > {
   >     "plugins": {
   >         "cgi-proxy": {
   >         }
   >     },
   >     "uri": "/cgi-proxy"
   > }'
   > ```
   > 
   > But an error occurred while requesting
   > ![image](https://user-images.githubusercontent.com/8169665/97319518-effef280-18a7-11eb-961d-b7a8e2b290c4.png)
   > 
   > ### Environment
   > Can anyone help? thx
   > 
   > * apisix version (cmd: `apisix version`):
   >   2.0
   > * OS:
   >   mac
   
   The route requires at least one plugin or upstream binding.


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