[GH-ISSUE #2689] frpc static_file plugin cannot work in windows #2148

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

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

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
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 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@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".

<!-- gh-comment-id:989529974 --> @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".
Author
Owner

@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?

<!-- gh-comment-id:1158607369 --> @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?
Author
Owner

@avin commented on GitHub (Dec 4, 2022):

use path like this plugin_local_path = c:\\tmp\\222222

<!-- gh-comment-id:1336463073 --> @avin commented on GitHub (Dec 4, 2022): use path like this `plugin_local_path = c:\\tmp\\222222`
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#2148
No description provided.