jujiale commented on issue #11405:
URL: https://github.com/apache/apisix/issues/11405#issuecomment-2230495006
@zwtesttt thanks, I find that apisix v3.9.1 used openresty v1.25.3.1, which
could use `http2 on;` support http and grpc protocol, we use apisix v2.15.0,
which use apisix-base based on openresty v1.21.4.2,after I use openresty
v1.25.3.1, and use the nginx.conf like below, it works!
`
server {
http2 on;
listen 8888;
location /test {
content_by_lua '
ngx.say("Hello, World ")
';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# gRPC
location / {
grpc_pass grpc://172.20.xxx.xxx:8888;
}
}
`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]