[GH-ISSUE #2942] 请问如何挂载多个文件目录? #2349

Closed
opened 2026-05-05 13:30:52 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @ysy950803 on GitHub (May 17, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2942

Bug Description

我的客户端配置:

[test_static_file]
type = tcp
remote_port = 6001
plugin = static_file
plugin_local_path = D:
plugin_strip_prefix = pc_d
plugin_http_user = aaa
plugin_http_passwd = 123

[test_static_file]
type = tcp
remote_port = 6002
plugin = static_file
plugin_local_path = C:
plugin_strip_prefix = pc_c
plugin_http_user = aaa
plugin_http_passwd = 123

我想通过这种方式同时提供多个目录的访问,但是最后生效的只有下面这个,请问正确的方式是什么?

frpc Version

v0.42.0

frps Version

v0.42.0

System Architecture

Client: windows/amd64
Server: linux/amd64

Configurations

Client端和Server端配置都没有问题。

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @ysy950803 on GitHub (May 17, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2942 ### Bug Description 我的客户端配置: ``` [test_static_file] type = tcp remote_port = 6001 plugin = static_file plugin_local_path = D: plugin_strip_prefix = pc_d plugin_http_user = aaa plugin_http_passwd = 123 [test_static_file] type = tcp remote_port = 6002 plugin = static_file plugin_local_path = C: plugin_strip_prefix = pc_c plugin_http_user = aaa plugin_http_passwd = 123 ``` 我想通过这种方式同时提供多个目录的访问,但是最后生效的只有下面这个,请问正确的方式是什么? ### frpc Version v0.42.0 ### frps Version v0.42.0 ### System Architecture Client: windows/amd64 Server: linux/amd64 ### Configurations Client端和Server端配置都没有问题。 ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@ysy950803 commented on GitHub (May 17, 2022):

哦,明白了。这样就好了:

[d_static_file]
type = tcp
remote_port = 6001
plugin = static_file
plugin_local_path = D:
plugin_strip_prefix = pc_d
plugin_http_user = aaa
plugin_http_passwd = 123

[c_static_file]
type = tcp
remote_port = 6002
plugin = static_file
plugin_local_path = C:
plugin_strip_prefix = pc_c
plugin_http_user = aaa
plugin_http_passwd = 123

还以为那个[]标签是固定的,实际上是自定义名称。

<!-- gh-comment-id:1128437489 --> @ysy950803 commented on GitHub (May 17, 2022): 哦,明白了。这样就好了: ``` [d_static_file] type = tcp remote_port = 6001 plugin = static_file plugin_local_path = D: plugin_strip_prefix = pc_d plugin_http_user = aaa plugin_http_passwd = 123 [c_static_file] type = tcp remote_port = 6002 plugin = static_file plugin_local_path = C: plugin_strip_prefix = pc_c plugin_http_user = aaa plugin_http_passwd = 123 ``` 还以为那个[]标签是固定的,实际上是自定义名称。
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#2349
No description provided.