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/11/03 10:30:45 UTC

[GitHub] [apisix] wangfeng22 opened a new issue, #8241: help request: Route cannot support both http and h2c

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

   ### Description
   
   when I set node_listen as follows, I can't access other upstreams by http.
   ```
   apisix:
     node_listen:                      # This style support multiple ports
       - 80
          enable_http2: true
   ```
   `curl http://domain` return `???`
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.13.2
   - 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] tokers commented on issue #8241: help request: apisix cannot support both http and h2c

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

   @wangfeng22 Yes, the H2C mechanism is not supported by Apache APISIX. For using HTTP/2, either through TLS ALPN or NPN (which means you have to use TLS), or use the [HTTP/2 Connection Preface](https://httpwg.org/specs/rfc7540.html#ConnectionHeader).


-- 
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] wangfeng22 commented on issue #8241: help request: apisix cannot support both http and h2c

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

   > @wangfeng22 Hi, may be you should do like this.
   > 
   > https://github.com/apache/apisix/blob/e523132f35fe2eb7e1d06990d037f18f89c9dcba/conf/config-default.yaml#L103
   
   what's the difference?


-- 
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] wangfeng22 closed issue #8241: help request: apisix cannot support both http and h2c

Posted by GitBox <gi...@apache.org>.
wangfeng22 closed issue #8241: help request: apisix cannot support both http and h2c
URL: https://github.com/apache/apisix/issues/8241


-- 
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] wangfeng22 commented on issue #8241: help request: apisix cannot support both http and h2c

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

   > @wangfeng22 Yes, the H2C mechanism is not supported by Apache APISIX. For using HTTP/2, either through TLS ALPN or NPN (which means you have to use TLS), or use the [HTTP/2 Connection Preface](https://httpwg.org/specs/rfc7540.html#ConnectionHeader).
   
   Thank you very much. @tokers 


-- 
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] Hazel6869 commented on issue #8241: help request: apisix cannot support both http and h2c

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

   @wangfeng22  Hi, may be you should do like this. https://github.com/apache/apisix/blob/e523132f35fe2eb7e1d06990d037f18f89c9dcba/conf/config-default.yaml#L103


-- 
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] hf400159 commented on issue #8241: help request: apisix cannot support both http and h2c

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

   One uses HTTP, and the other uses HTTPS. This function can be used normally in 2.13.2. Could you provide complete reproduction steps if you still can't use 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