mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1346] windows作为客户端使用plugin static_file访问一直返回404 #1067
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#1067
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 @lujiahaoo on GitHub (Jul 31, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1346
What version of frp are you using (./frpc -v or ./frps -v)?
frps:0.27.1
frpc:0.27.1
What operating system and processor architecture are you using (
go env)?Server: Linux3.10 - Centos7 | Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
Client: Windows 10 家庭中文版 InteI(R) Core(TM) i5-7200U CPU @2.50GHZ 2.70GHZ
Configures you used:
Server:
Client:
Steps to reproduce the issue:
1.在Windows C盘根目录下新建文件share,进入文件创建test.txt
2.服务端客户端启动服务
3.浏览器访问 myip:7250/share
Describe the results you received:
浏览器显示404 page not found
Describe the results you expected:
浏览器显示test.txt并且可以下载
Additional information you deem important (e.g. issue happens only occasionally):
登陆 myip:7500 查看dashboard 显示6000,7250端口都online,客户端服务端启动时输出都正常
Can you point out what caused this issue (optional)
会是windows防火墙的问题吗?
@bjgetite commented on GitHub (Aug 2, 2019):
我和你遇到了同样的问题,都换成最新版本也不行...,你怎么解决的?
@bjgetite commented on GitHub (Aug 8, 2019):
我看了别的issues解决了,是在访问路径下结尾是/就可以了,不加/就报404,比如你访问myip:7250/share/就可以
@Nathanlee2010 commented on GitHub (Aug 24, 2019):
非常感谢
@datty258 commented on GitHub (Feb 26, 2021):
这也行,结尾必须要加/ 。否则就not found。这算是一个bug了。
@fatedier commented on GitHub (Feb 26, 2021):
@datty258 这里是一个目录,所以需要加 /,如果是文件则不用。这个直接使用的 golang 标准库的逻辑。
@junbujianwpl commented on GitHub (Jan 13, 2023):
在Windows作为client时,下面这句也不能带,带上就404,注释掉就好了,啥原因呢
plugin_strip_prefix = static
几个类似的问题
https://github.com/fatedier/frp/issues/1211
https://github.com/fatedier/frp/issues/2986