mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #789] 为什么HTTP有连接但显示没有网页?? #615
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#615
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 @laoxu99 on GitHub (May 21, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/789
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
服务器frps版本0.19.0
客户端frpc版本0.19.0
What operating system and processor architecture are you using (
go env)?服务器版本frps版本为亚马逊AWS上部署的ubuntu x64 EC2实例
客户端版本frpc版本为linux。
Configures you used:
客户端配置:
【common】
server_addr =18...49
server_port=7000
auto_token=xu*****678
[ssh]
type = tcp
local_ip =192.168.1.200
local_port=22
remote_port=6000
[nas]
type=http
local_ip = 192.168.1.200
local_port=5000
custom_domains = nas
服务器端配置

Steps to reproduce the issue:

1.运行FRPS端,结果如下:
2.运行FRPC客户端,结果如下:

3.查看frps服务器的7500管理端口
看到的SSH的反向连接:


看到了HTTP反向连接
Describe the results you received:

连接上SSH反射端口:
但输入192.168.1.200:5000能正常访问HTTP页面,如下:

但输入nas.lao*****s.top:8080,却提示找不到页面,如下图:
Describe the results you expected:
有HTTP的反射端口,但无法访问页面,这种情况应该怎么办?求指教。谢谢。
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (May 22, 2018):
通过自定义域名访问部署于内网的 web 服务
看文档和参考现有的配置文件,你的域名相关的配置可能有问题。
@zzyandzzy commented on GitHub (May 25, 2018):
你可以试试在你的服务器访问nas.lao*****s.top:8080
@xiaoyell commented on GitHub (May 27, 2018):
custom_domains = nas
配置错误了,此处应该为完整域名
@laoxu99 commented on GitHub (May 27, 2018):
搞定了,感谢大神的提醒,还是我没有仔细看官方文档的缘故。在FRPS端设置subdomain_host=laos.top后,在frpc端,web设置只要这么几句就可以:
type = http
local_port= 5000
subdomain = nas
这样,我只输入nas.laos.top:8080,就能轻松访问了。也就是说,frpc端的subdomain是frps端的subdomain_host的前缀部分