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

[GitHub] [apisix] siaron opened a new issue, #9152: help request: API is bound to different HTTP ports

siaron opened a new issue, #9152:
URL: https://github.com/apache/apisix/issues/9152

   ### Description
   
   将api按照端口进行分类。例如有`api/a`,`api/b`,`api/c`,`api/d`
   - 将`api/a`,`api/b`绑定到9801端口
   - 将`api/c`,`api/d`绑定到9802端口
   将流量分开。 apisix 是否支持,在文档里没看到。
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] goluckycoding commented on issue #9152: help request: API is bound to different HTTP ports

Posted by "goluckycoding (via GitHub)" <gi...@apache.org>.
goluckycoding commented on issue #9152:
URL: https://github.com/apache/apisix/issues/9152#issuecomment-1598344848

   > 
   
   is there any api in apisix that can add or remove ports which bind diffrent service or htmls? like nginx listen to 8081 which proxy_pass to  another ip with 443, and listen to 8082 which proxy_pass to another ip2 with 443.finaly I can use chrome to access them with only one SSL certificate (which is no problem with set-cookie)


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


[GitHub] [apisix] siaron commented on issue #9152: help request: API is bound to different HTTP ports

Posted by "siaron (via GitHub)" <gi...@apache.org>.
siaron commented on issue #9152:
URL: https://github.com/apache/apisix/issues/9152#issuecomment-1482164807

   这种情况下`api/a`,'api/b','api/c','api/d' 还是在两个端口中能访问呢,通过对外开放的9810端口也能访问到`api/c`,'api/d'。


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


[GitHub] [apisix] soulbird commented on issue #9152: help request: API is bound to different HTTP ports

Posted by "soulbird (via GitHub)" <gi...@apache.org>.
soulbird commented on issue #9152:
URL: https://github.com/apache/apisix/issues/9152#issuecomment-1482133320

   You can listen to multiple ports on APISIX to receive traffic at the same time, and then split the traffic to different backend services through the traffic-spilt plugin.
   https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L24


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


[GitHub] [apisix] siaron commented on issue #9152: help request: API is bound to different HTTP ports

Posted by "siaron (via GitHub)" <gi...@apache.org>.
siaron commented on issue #9152:
URL: https://github.com/apache/apisix/issues/9152#issuecomment-1480677800

   9801 是apisix的端口


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


[GitHub] [apisix] siaron commented on issue #9152: help request: API is bound to different HTTP ports

Posted by "siaron (via GitHub)" <gi...@apache.org>.
siaron commented on issue #9152:
URL: https://github.com/apache/apisix/issues/9152#issuecomment-1482122555

   在一个服务里有两类http端口,一种是对外提供服务(南北流量,外网可访问),另一种是内部的服务(东西流量,外网不可访问),想通过apisix统一入口,所以想用不同端口处理,所以要绑定不同的api


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


[GitHub] [apisix] soulbird commented on issue #9152: help request: API is bound to different HTTP ports

Posted by "soulbird (via GitHub)" <gi...@apache.org>.
soulbird commented on issue #9152:
URL: https://github.com/apache/apisix/issues/9152#issuecomment-1482117768

   This usage is not currently supported. But I'm curious about your usage scenario, can you describe it?


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


[GitHub] [apisix] soulbird commented on issue #9152: help request: API is bound to different HTTP ports

Posted by "soulbird (via GitHub)" <gi...@apache.org>.
soulbird commented on issue #9152:
URL: https://github.com/apache/apisix/issues/9152#issuecomment-1482455730

   
   > 这种情况下`api/a`,'api/b','api/c','api/d' 还是在两个端口中能访问呢,通过对外开放的9810端口也能访问到`api/c`,'api/d'。
   
   You can configure conditional routing through vars, binding uri and port (ngx.var.server_port) together
   


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


[GitHub] [apisix] soulbird commented on issue #9152: help request: API is bound to different HTTP ports

Posted by "soulbird (via GitHub)" <gi...@apache.org>.
soulbird commented on issue #9152:
URL: https://github.com/apache/apisix/issues/9152#issuecomment-1480675867

   Is 9801 the port of the backend service? If yes, you can try traffic-split 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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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