[GH-ISSUE #524] 微信支付回调报“[W] [vhost.go:129] get hostname from http/https request error: Unknow error” #405

Closed
opened 2026-05-05 12:13:25 -06:00 by gitea-mirror · 4 comments
Owner

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

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
Author
Owner

@fatedier commented on GitHub (Dec 5, 2017):

你没有说明是 http 还是 https 存在问题。

如果是 https 存在问题,改为以下配置尝试下:

[https]
type = https
local_ip = manage.zenlogic.com
local_port = 443
custom_domains = xxxx

之后使用 custom_domains 配置的域名通过 chrome 访问看能否正常打开。如果能打开,就可能是你的 https 服务的问题。

<!-- gh-comment-id:349340759 --> @fatedier commented on GitHub (Dec 5, 2017): 你没有说明是 http 还是 https 存在问题。 如果是 https 存在问题,改为以下配置尝试下: ```ini [https] type = https local_ip = manage.zenlogic.com local_port = 443 custom_domains = xxxx ``` 之后使用 custom_domains 配置的域名通过 chrome 访问看能否正常打开。如果能打开,就可能是你的 https 服务的问题。
Author
Owner

@GongDexing commented on GitHub (Dec 17, 2017):

@fatedier https和http都是这个错误,在生产环境不经过frp是没有问题的,浏览器打开支付回调地址也没问题
image

<!-- gh-comment-id:352238837 --> @GongDexing commented on GitHub (Dec 17, 2017): @fatedier https和http都是这个错误,在生产环境不经过frp是没有问题的,浏览器打开支付回调地址也没问题 ![image](https://user-images.githubusercontent.com/20265449/34077691-da4c906e-e344-11e7-8ef0-7edb23dc7eac.png)
Author
Owner

@fatedier commented on GitHub (Jan 17, 2018):

猜测有可能是这个 https 请求没有支持 sni,可以手动发送试试,因为 frps 需要根据域名做路由,https 请求中需要附加上域名信息。

<!-- gh-comment-id:358358137 --> @fatedier commented on GitHub (Jan 17, 2018): 猜测有可能是这个 https 请求没有支持 sni,可以手动发送试试,因为 frps 需要根据域名做路由,https 请求中需要附加上域名信息。
Author
Owner

@wintersun commented on GitHub (Jul 23, 2018):

@GongDexing 我也遇到这个问题,但改用http就正常,所以不知道问题出在哪里。请问你解决了吗?

<!-- gh-comment-id:406993700 --> @wintersun commented on GitHub (Jul 23, 2018): @GongDexing 我也遇到这个问题,但改用http就正常,所以不知道问题出在哪里。请问你解决了吗?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#405
No description provided.