mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #524] 微信支付回调报“[W] [vhost.go:129] get hostname from http/https request error: Unknow error” #405
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#405
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 @GongDexing on GitHub (Nov 15, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/524
What version of frp are you using (./frpc -v or ./frps -v)?
0.13.0 frps
What operating system and processor architecture are you using (
go env)?linux centos 7
Configures you used:
Server
[common]
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
log_level = debug
[http]
type = http
custom_domains = xxxx
auth_token = xxxx
[https]
type = https
custom_domains = xxxx
auth_token = xxxx
Client
[common]
server_addr = xxxxxx
server_port = 7000
auth_token = xxxx
[http]
type = http
local_port = 80
custom_domains = xxxx
[https]
type = https
local_port = 443
custom_domains = xxxx
Describe the results you received:
[W] [vhost.go:129] get hostname from http/https request error: Unknow error
@fatedier commented on GitHub (Dec 5, 2017):
你没有说明是 http 还是 https 存在问题。
如果是 https 存在问题,改为以下配置尝试下:
之后使用 custom_domains 配置的域名通过 chrome 访问看能否正常打开。如果能打开,就可能是你的 https 服务的问题。
@GongDexing commented on GitHub (Dec 17, 2017):
@fatedier https和http都是这个错误,在生产环境不经过frp是没有问题的,浏览器打开支付回调地址也没问题

@fatedier commented on GitHub (Jan 17, 2018):
猜测有可能是这个 https 请求没有支持 sni,可以手动发送试试,因为 frps 需要根据域名做路由,https 请求中需要附加上域名信息。
@wintersun commented on GitHub (Jul 23, 2018):
@GongDexing 我也遇到这个问题,但改用http就正常,所以不知道问题出在哪里。请问你解决了吗?