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/02/03 06:46:16 UTC

[GitHub] [apisix] tongorz opened a new issue #3503: feat: How to select dynamic upstream by url path or url parameter ?

tongorz opened a new issue #3503:
URL: https://github.com/apache/apisix/issues/3503


   ### Issue description
   I'm trying to use apisix as a proxy of thoudsands of server's IPMI(or BMC) WEB interface。
   
   URL should be something like this:
   https://ipmi.somedomain.com/{{Server_IPMI_IP}}  or 
   https://ipmi.somedomain.com?ip={{Server_IPMI_IP}}
   
   Upstream should be something like this:
   https://{{Server_IPMI_IP}}
   
   Can apisix help to support case described above?
   
   Thank you!
   
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   * 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:
   


----------------------------------------------------------------
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 removed a comment on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

Posted by GitBox <gi...@apache.org>.
tokers removed a comment on issue #3503:
URL: https://github.com/apache/apisix/issues/3503#issuecomment-773259290


   @tongorz Have you tried the proxy-rewrite 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] membphis edited a comment on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   You can refer to the traffic-split plugin and extend a new custom plugin.
   
   If you need more specific help, you can contact us.  @tongorz 


----------------------------------------------------------------
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] tongorz edited a comment on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   > @tongorz It looks like you wanna proxy to the IP which specified in the parameter?
   
   Yes. I want all traffic to https://Server_IPMI_IP:443 go through proxy server first.


----------------------------------------------------------------
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] tongorz commented on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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






----------------------------------------------------------------
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] Firstsawyou commented on issue #3503: feat: How to select dynamic upstream by url path or url parameter ?

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


   > You can take a look at this plugin, it should help you: [https://github.com/apache/apisix/blob/master/doc/plugins/traffic-split.md ](https://github.com/apache/apisix/blob/master/doc/plugins/traffic-split.md)
   
   The traffic-slipt plugin can select dynamic upstream for the url parameter, but does not support the rewriting of the url parameter.


----------------------------------------------------------------
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 #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   @spacewander 
   
   Seems we don't have  a way to achieve 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] tongorz commented on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   > @tongorz It looks like you wanna proxy to the IP which specified in the parameter?
   
   Yes. I want all traffic to IPMI WEB of Servers go through proxy server first.


----------------------------------------------------------------
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] Firstsawyou commented on issue #3503: feat: How to select dynamic upstream by url path or url parameter ?

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


   You can take a look at this plugin, it should help you: [https://github.com/apache/apisix/blob/master/doc/plugins/traffic-split.md ](https://github.com/apache/apisix/blob/master/doc/plugins/traffic-split.md)


----------------------------------------------------------------
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 closed issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   


-- 
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] tongorz commented on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   > > You can take a look at this plugin, it should help you: [https://github.com/apache/apisix/blob/master/doc/plugins/traffic-split.md ](https://github.com/apache/apisix/blob/master/doc/plugins/traffic-split.md)
   > 
   > The traffic-slipt plugin can select dynamic upstream for the url parameter, but does not support the rewriting of the url.
   
   Thank you. :)
   It looks like that the traffic-slipt plugin won't work in my case...


----------------------------------------------------------------
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] Firstsawyou edited a comment on issue #3503: feat: How to select dynamic upstream by url path or url parameter ?

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


   > You can take a look at this plugin, it should help you: [https://github.com/apache/apisix/blob/master/doc/plugins/traffic-split.md ](https://github.com/apache/apisix/blob/master/doc/plugins/traffic-split.md)
   
   The traffic-slipt plugin can select dynamic upstream for the url parameter, but does not support the rewriting of the url.


----------------------------------------------------------------
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 removed a comment on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

Posted by GitBox <gi...@apache.org>.
tokers removed a comment on issue #3503:
URL: https://github.com/apache/apisix/issues/3503#issuecomment-773259290


   @tongorz Have you tried the proxy-rewrite 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] tongorz edited a comment on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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






----------------------------------------------------------------
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] tongorz edited a comment on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   > @tongorz It looks like you wanna proxy to the IP which specified in the parameter?
   
   Yes. I want all traffic to http://Server_IPMI_IP:443 go through proxy server first.


----------------------------------------------------------------
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 #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   Consider solved


-- 
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 #3503: Question: How to select dynamic upstream by url path or url parameter ?

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






----------------------------------------------------------------
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 #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   You can refer to the traffic-split plugin and extend a new custom plugin.
   
   If you need more specific help, you can contact us. 


----------------------------------------------------------------
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 #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   @tongorz Have you tried the proxy-rewrite 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] tokers commented on issue #3503: Question: How to select dynamic upstream by url path or url parameter ?

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


   @tongorz It looks like you wanna proxy to the IP which specified in the parameter?


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