openlitespeed icon indicating copy to clipboard operation
openlitespeed copied to clipboard

http2 in upstream proxy connections

Open murty2 opened this issue 3 years ago • 2 comments

I have a backend server 127.0.0.1:8000 that supports http2 only (because it uses nghttp2 library), no http 1.1, no connection Upgrade command.

I am trying to configure my OpenLiteSpeed reverse proxy to my backend server using the following in extprocessor {..}

address h2://127.0.0.1:8000

This does not work. If I disable SSL in my backend server and try the following

address h2c://127.0.0.1:8000

also does not work.

How to use http2 in upstream proxy connections? Alternatively, how to connect to backend gRPC server?

murty2 avatar Feb 27 '22 08:02 murty2

HTTP/2 backend are not supported. Maybe will be added in 1.8 branch.

litespeedtech avatar Feb 27 '22 15:02 litespeedtech

I hope http2 and http2c backend support show up in 1.8 branch. In the meanwhile, I am using nghttpx to proxy http1.1 from LiteSpeed to http/2 (without enc) like this

nghttpx -f'unix:/home/sysadmin/mysock;;no-tls' -b'127.0.0.1,8000;;proto=h2'

murty2 avatar Mar 15 '22 20:03 murty2