-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[http2]代理一个只支持http2的server, frp返回502错误码 #4217
Comments
看起来是 |
证书配置是正确的,因为不通过frp代理直接访问原始端口的情况下能正常访问,并且没有证书错误。 |
可以尝试 注释掉 |
那是因为,给 |
刚试了一下不带k也没有证书错误
|
https2https 插件和Port 12345 服务用的都是Let's Encrypt的证书(同一个证书) |
既然是 同一个证书,那么 不需要使用插件 |
用插件设置了一下http header。现在能确定是什么原因吗? 不知道是否和这个有关: |
nginx在配置proxy_pass时可以指定http版本
如果无法准确判断http version,是否可以考虑像nginx一样,在插件配置项里添加一个proxy_http_version用于指定http版本。仅仅是个建议哈,我对nginx和http也不是十分熟悉,只是刚刚看到nginx里有这个配置项。 |
Bug Description
使用frp代理一个只支持http2的server时, frp总是返回502错误码
HTTP 178 HTTP/1.1 502 Bad Gateway
使用curl连接frp vhost端口
强制curl使用http2连接,但最终http协议还是failback到http1.1了(frp not agree on a protocol), 返回502错误码
使用curl直接连接原始端口
强制curl使用http2,能够协商成功,最终使用http2,返回200 服务能正常访问
由于被代理的服务只支持http2, 如果强制使用http1.1访问会失败
frpc Version
0.57.0
frps Version
0.57.0
System Architecture
linux/amd64
Configurations
frpc
frps
Logs
No response
Steps to reproduce
...
Affected area
The text was updated successfully, but these errors were encountered: