mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2986] frpc - static_file plugin cannot work well in windows #2383
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#2383
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 @acse-bp221 on GitHub (Jun 17, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2986
Bug Description
Based on the documentation you have provided(https://gofrp.org/docs/examples/static-file/), I should be able to share local files using the static_file plugin.
The access directory is shown below:
plugin_local_path = /tmp/fileAccording to tests, this works well under Linux, but is only accessible via relative paths on Windows.
Assuming that frpc is installed in
C:/frp/frpc.exe, I can set the local path by settingplugin_local_path = ../sharing the whole ofC:/, but if I have another disk(such asF:/), this will not be possible.I have tried:
See Also #2689
frpc Version
0.43.0
frps Version
0.43.0
System Architecture
windows/amd64
Configurations
[files]
type = tcp
remote_port = 18000
plugin = static_file
plugin_local_path = D:/
plugin_strip_prefix = static
plugin_http_user =
plugin_http_passwd =
Logs
404 page not found
Steps to reproduce
As described above
Affected area
@acse-bp221 commented on GitHub (Jun 17, 2022):
I'm sorry, I found that the problem is that I accessed the wrong link. According to my configuration, I should access 'http://ip:port/static/', if 'http://ip:port/static' I get an error.