[GH-ISSUE #3089] http隧道出现 “The page you requested was not found.” 如何解决 #2474

Closed
opened 2026-05-05 13:35:29 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @SongZihuan on GitHub (Sep 5, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3089

Bug Description

我的服务端http监听80,https监听443,客户端由nginx监听80端口并反向代理到8080。8080是python+Flask的项目。
www.song-zh.com 解析到了我的服务端,我访问www.song-zh.com却出现The page you requested was not found。

frpc Version

0.44.0

frps Version

0.44.0

System Architecture

Linux/x86_64

Configurations

我的客户端添加了如下配置(略有删减):

[common]
server_addr = xxxx
server_port = xxxx
token = xxxx

admin_addr = xxxx
admin_port = xxxx
admin_user = xxxx
admin_pwd = xxxx

[http]
type = http
local_port = 80
custom_domains = song-zh.com www.song-zh.com
# use_encryption = true
# use_compression = true

我的服务端添加了如下配置:

[common]
bind_port = xxxx
vhost_http_port = 80
vhost_https_port = 443
token = xxxx
allow_ports = 465,995,993,1024-50000

dashboard_port = xxxx
dashboard_user = xxxx
dashboard_pwd = xxxx

Logs

每次对www.song-zh.com访问出现服务端日志(syslog):

Sep  5 17:54:55 song-zh frps[89870]: 2022/09/05 17:54:55 #033[1;33m[W] [http.go:115] do http proxy request [host: www.song-zh.com] error: no route found: www.song-zh.com / #033[0m

客户端除了启动的日志,无其他日志。

Steps to reproduce

  1. 按照上述配置文件配置服务端和客户端
  2. 启动服务
  3. 访问www.song-zh.com

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @SongZihuan on GitHub (Sep 5, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3089 ### Bug Description 我的服务端http监听80,https监听443,客户端由nginx监听80端口并反向代理到8080。8080是python+Flask的项目。 www.song-zh.com 解析到了我的服务端,我访问www.song-zh.com却出现The page you requested was not found。 ### frpc Version 0.44.0 ### frps Version 0.44.0 ### System Architecture Linux/x86_64 ### Configurations 我的客户端添加了如下配置(略有删减): ``` [common] server_addr = xxxx server_port = xxxx token = xxxx admin_addr = xxxx admin_port = xxxx admin_user = xxxx admin_pwd = xxxx [http] type = http local_port = 80 custom_domains = song-zh.com www.song-zh.com # use_encryption = true # use_compression = true ``` 我的服务端添加了如下配置: ``` [common] bind_port = xxxx vhost_http_port = 80 vhost_https_port = 443 token = xxxx allow_ports = 465,995,993,1024-50000 dashboard_port = xxxx dashboard_user = xxxx dashboard_pwd = xxxx ``` ### Logs 每次对www.song-zh.com访问出现服务端日志(syslog): ``` Sep 5 17:54:55 song-zh frps[89870]: 2022/09/05 17:54:55 #033[1;33m[W] [http.go:115] do http proxy request [host: www.song-zh.com] error: no route found: www.song-zh.com / #033[0m ``` 客户端除了启动的日志,无其他日志。 ### Steps to reproduce 1. 按照上述配置文件配置服务端和客户端 2. 启动服务 3. 访问www.song-zh.com 4. ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [X] Others
Author
Owner

@SongZihuan commented on GitHub (Sep 5, 2022):

我找到问题似乎出现在客户端配置文件custom_domains = song-zh.com www.song-zh.com,修改为custom_domains = song-zh.com,www.song-zh.com后可以成功

<!-- gh-comment-id:1236796166 --> @SongZihuan commented on GitHub (Sep 5, 2022): 我找到问题似乎出现在客户端配置文件`custom_domains = song-zh.com www.song-zh.com`,修改为`custom_domains = song-zh.com,www.song-zh.com`后可以成功
Author
Owner

@SongZihuan commented on GitHub (Sep 5, 2022):

问题解决

<!-- gh-comment-id:1237082753 --> @SongZihuan commented on GitHub (Sep 5, 2022): 问题解决
Author
Owner

@VAJlai commented on GitHub (Nov 7, 2022):

请问一下,我的是会断续出现这种情况,然后持续十分钟左右,自己又恢复正常,请问这会是什么原因?

<!-- gh-comment-id:1305527317 --> @VAJlai commented on GitHub (Nov 7, 2022): 请问一下,我的是会断续出现这种情况,然后持续十分钟左右,自己又恢复正常,请问这会是什么原因?
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#2474
No description provided.