mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2689] frpc static_file plugin cannot work in windows #2148
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#2148
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 @MackeyLao on GitHub (Dec 3, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2689
Bug Description
no mattar how I can set the "plugin_local_path",
I only got follow error after input user and pw:
404 page not found
The "plugin_local_path" i had tried inlcude windows style and linux style:
c:\Temp
/c/Temp
/c
All cannot work.
this plugin can work in Linux client environment.
Question:
How can I set the "plugin_local_path" in Windows?
frpc Version
0.38.0
frps Version
0.38.0
System Architecture
Server: Linux Centos7.9/amd64, Client: windows 10/amd64
Configurations
[common]
server_addr = x.x.x.x
server_port = 7000
[plugin_static_file1]
type = tcp
remote_port = 7501
plugin = static_file
plugin_local_path = /c
plugin_strip_prefix = static
plugin_http_user = abc
plugin_http_passwd = abc
Logs
No response
Steps to reproduce
...
Affected area
@MackeyLao commented on GitHub (Dec 9, 2021):
I found out the solution myself and paste here for other reference.
if disable this line as below, I can accept the frpc folder in browser.
#plugin_local_path = /c/Temp
Then try to set:
plugin_local_path = ../
the folder is frpc folder's father folder.
That means the "plugin_local_path" in windows is using relative path.
e.g.: frpc's folder is C:\Temp\frp
then "plugin_local_path = ../" will set the path to "C:\Temp".
@acse-bp221 commented on GitHub (Jun 17, 2022):
Hi, I tried your method and I can indeed access C:\Temp, but this method can only share the disk where frpc is located. If I want to access D:\Temp, how should I fill in the path?
@avin commented on GitHub (Dec 4, 2022):
use path like this
plugin_local_path = c:\\tmp\\222222