mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1521] nginx代理frps后出现 http proxy request error: no such domain #1201
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#1201
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 @litongjava on GitHub (Nov 18, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1521
服务器端口
nginx 80
bind_port = 7000
vhost_http_port=7000
在nginx中代理frps的配置
启动nginx
启动frps
启动frpc
frpc客户端配置
测试ssh连接成功

但是测试http却是失败界面显示显示如下
frps的日志是
这个问题改如何解决呢?
@fatedier commented on GitHub (Nov 18, 2019):
custom_domains = 001.example.com,002.example.com 和你访问的 domain 不匹配。
@litongjava commented on GitHub (Nov 19, 2019):
@fatedier 只可能是这一个原因吗?
域名匹配,我是粘贴复制的
@fatedier commented on GitHub (Nov 29, 2019):
看日志,
[W] [http.go:95] do http proxy request error: no such domain: frps /,已经说明了是 domain 错误。@acmookey commented on GitHub (Mar 3, 2020):
nginx反向代理少了这个:
@dacheng-gao commented on GitHub (Aug 27, 2020):
Thank you @acmookey , helpped me a lot.