mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3040] https2http碰到Error502 #2433
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2433
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @paladin4fan on GitHub (Jul 29, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3040
Bug Description
申请了一个域名和对应的SSL证书
服务器是nginx反代apache的owncloud
通过IPv6 直接使用https访问是正常的
现在用Frp穿透IPv4
之前v0.36的时候 用https2http插件 可以正常代理
但是重新安装系统后使用0.44版本 ipv4访问frp代理返回http error 502
另一个单纯的穿透http就正常
frpc Version
0.44.0
frps Version
0.44.0
System Architecture
linux/amd64
Configurations
[common]
server_addr = 18.176.xxx.xxx
server_port = 8443
token = ***
log_file = /var/log/frpc.log
log_level = debug
log_max_days = 3
pool_count = 0
tcp_mux = true
login_fail_exit = false
protocol = tcp
tls_enable = false
heartbeat_interval = 30
heartbeat_timeout = 90
[Web-test]
type = http
local_ip = 192.168.10.2
local_port = 32080
use_encryption = false
use_compression = false
custom_domains = b.mydomain.xyz
[OC]
type = https
plugin = https2http
plugin_local_addr = [192.168.10.2:8080]
plugin_crt_path = /etc/frpc/ssl/1_domain_bundle.crt
plugin_key_path = /etc/frpc/ssl/2_domain.key
plugin_host_header_rewrite = a.mydomain.xyz
use_encryption = false
use_compression = false
custom_domains = a.mydomain.xyz
Logs
frp客户端日志相关如下
2022/07/29 14:32:43 [D] [proxy_wrapper.go:231] [1c2ede17a19f814e] [OC] start a new work connection, localAddr: 10.118.xx.xx:55442 remoteAddr: 18.176.xxx.xxx:8443
2022/07/29 14:32:43 [D] [proxy.go:783] [1c2ede17a19f814e] [OC] handle by plugin: https2http
2022/07/29 14:32:43 [D] [proxy.go:785] [1c2ede17a19f814e] [OC] handle by plugin finished
Steps to reproduce
...
Affected area
@paladin4fan commented on GitHub (Jul 29, 2022):
是我自己搞错了 mdzz
@superzjg commented on GitHub (Nov 24, 2022):
你使用是这个frpc的luci界面有小问题:插件-本地地址不能带端口号,否则会错误的显示 [192.168.10.2:8080],但这个luci支持代理增加额外选项,插件-本地地址那里留空,然后最下面额外选项写plugin_local_addr=192.168.10.2:8080即可
@paladin4fan commented on GitHub (Nov 24, 2022):
是的 我之前就遇到过了 这次换路由器忘了这茬
已经修改了相关的init脚本 但是这个项目好像没人维护了 我只能自己fork出去了