[GH-ISSUE #779] 使用FRP弹错 #607

Closed
opened 2026-05-05 12:23:40 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @q8263542 on GitHub (May 19, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/779

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)?
0.16.1

What operating system and processor architecture are you using (go env)?
路由器老毛子

Configures you used:
默认

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)
出现如下问题
The page you visit not found.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

The server is powered by frp.

Faithfully yours, frp.

Originally created by @q8263542 on GitHub (May 19, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/779 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)?** 0.16.1 **What operating system and processor architecture are you using (`go env`)?** 路由器老毛子 **Configures you used:** 默认 **Steps to reproduce the issue:** 1. 2. 3. **Describe the results you received:** **Describe the results you expected:** **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)** 出现如下问题 The page you visit not found. Sorry, the page you are looking for is currently unavailable. Please try again later. The server is powered by frp. Faithfully yours, frp.
Author
Owner

@wangxianfeng commented on GitHub (May 19, 2018):

像这种问题就不要提issue了吧,这种是因为没有配置对,具体哪里没有配置对,因为你的配置也没有贴,别人没法帮你,可以多看看官方使用文档,多摸索一下。

<!-- gh-comment-id:390370154 --> @wangxianfeng commented on GitHub (May 19, 2018): 像这种问题就不要提issue了吧,这种是因为没有配置对,具体哪里没有配置对,因为你的配置也没有贴,别人没法帮你,可以多看看官方使用文档,多摸索一下。
Author
Owner

@q8263542 commented on GitHub (May 19, 2018):

好的,谢谢了

<!-- gh-comment-id:390371027 --> @q8263542 commented on GitHub (May 19, 2018): 好的,谢谢了
Author
Owner

@q8263542 commented on GitHub (May 19, 2018):

==========客户端配置:==========

[common]
server_addr = 我的IP
server_port = 7000
token = 12345

log_file = /dev/null
log_level = info
log_max_days = 3

[web]
remote_port = 8000
type = http
local_ip = 192.168.123.1
local_port = 80
subdomain = test
#host_header_rewrite = 实际你内网访问的域名,可以供公网的域名不一致,如果一致可以不写

==========服务端配置:==========

[common]
bind_port = 7000
dashboard_port = 7500

dashboard 用户名密码,默认都为 admin

dashboard_user = admin
dashboard_pwd = admin
vhost_http_port = 8000
token = 12345
subdomain_host = 我的IP
max_pool_count = 50
log_file = /dev/null
log_level = info
log_max_days = 3

====================

请问哪里设置问题吗?

打开 我的IP:7500,能显示后台已连接上。但是无数据传输

<!-- gh-comment-id:390374836 --> @q8263542 commented on GitHub (May 19, 2018): # ==========客户端配置:========== [common] server_addr = 我的IP server_port = 7000 token = 12345 log_file = /dev/null log_level = info log_max_days = 3 [web] remote_port = 8000 type = http local_ip = 192.168.123.1 local_port = 80 subdomain = test #host_header_rewrite = 实际你内网访问的域名,可以供公网的域名不一致,如果一致可以不写 # ==========服务端配置:========== [common] bind_port = 7000 dashboard_port = 7500 # dashboard 用户名密码,默认都为 admin dashboard_user = admin dashboard_pwd = admin vhost_http_port = 8000 token = 12345 subdomain_host = 我的IP max_pool_count = 50 log_file = /dev/null log_level = info log_max_days = 3 # ==================== 请问哪里设置问题吗? 打开 我的IP:7500,能显示后台已连接上。但是无数据传输
Author
Owner

@wangxianfeng commented on GitHub (May 19, 2018):

你的配置:
[web]
remote_port = 8000
type = http
local_ip = 192.168.123.1
local_port = 80
subdomain = test
官方文档配置:
[web]
type = http
local_port = 80
custom_domains = www.yourdomain.com

web服务是不需要remote_port的。

然后你访问你的子域名的时候看看能够解析到你的服务端的IP,域名那里也需要配置。域名要能解析到你的服务器IP

<!-- gh-comment-id:390375102 --> @wangxianfeng commented on GitHub (May 19, 2018): 你的配置: [web] remote_port = 8000 type = http local_ip = 192.168.123.1 local_port = 80 subdomain = test 官方文档配置: [web] type = http local_port = 80 custom_domains = www.yourdomain.com web服务是不需要remote_port的。 然后你访问你的子域名的时候看看能够解析到你的服务端的IP,域名那里也需要配置。域名要能解析到你的服务器IP
Author
Owner

@xiaoyell commented on GitHub (May 19, 2018):

subdomain_host = 我的IP
这个不对,应该是你的根域名

<!-- gh-comment-id:390382110 --> @xiaoyell commented on GitHub (May 19, 2018): subdomain_host = 我的IP 这个不对,应该是你的根域名
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#607
No description provided.