[GH-ISSUE #1345] linux系统作服务器,windows作客户端,使用plugin static_file访问时总是404 #1066

Closed
opened 2026-05-05 12:41:08 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @lujiahaoo on GitHub (Jul 31, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1345

使用版本是0.27.1 amd64

linux服务端配置如下:
bind_port = 7000
dashboard_port =7500
dashboard_user =ljh
dashboard_pwd =ljh

windows客户端配置如下:
[common]
server_addr = ****
server_port = 7000

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000

[static_file]
type = tcp
remote_port = 7250
plugin = static_file
plugin_local_path=C:/share
plugin_strip_prefix =share
plugin_http_user =user
plugin_http_passwd =pwd

服务端和客户端启动都正常,dashboard也监听得到6000和7250端口,
客户端启动时返回也正常
$ frpc.exe
2019/07/31 10:29:31 [I] [service.go:221] login to server success, get run id [25 9f11ee9dabd1dd], server udp port [0]
2019/07/31 10:29:31 [I] [proxy_manager.go:137] [259f11ee9dabd1dd] proxy added: [ ssh static_file]
2019/07/31 10:29:31 [I] [control.go:144] [ssh] start proxy success
2019/07/31 10:29:31 [I] [control.go:144] [static_file] start proxy success

但是访问 *****:7250/share时一直返回404 page not found

Originally created by @lujiahaoo on GitHub (Jul 31, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1345 使用版本是0.27.1 amd64 linux服务端配置如下: bind_port = 7000 dashboard_port =7500 dashboard_user =ljh dashboard_pwd =ljh windows客户端配置如下: [common] server_addr = **** server_port = 7000 [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6000 [static_file] type = tcp remote_port = 7250 plugin = static_file plugin_local_path=C:/share plugin_strip_prefix =share plugin_http_user =user plugin_http_passwd =pwd 服务端和客户端启动都正常,dashboard也监听得到6000和7250端口, 客户端启动时返回也正常 $ frpc.exe 2019/07/31 10:29:31 [I] [service.go:221] login to server success, get run id [25 9f11ee9dabd1dd], server udp port [0] 2019/07/31 10:29:31 [I] [proxy_manager.go:137] [259f11ee9dabd1dd] proxy added: [ ssh static_file] 2019/07/31 10:29:31 [I] [control.go:144] [ssh] start proxy success 2019/07/31 10:29:31 [I] [control.go:144] [static_file] start proxy success 但是访问 *****:7250/share时一直返回404 page not found
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#1066
No description provided.