[GH-ISSUE #865] 怎么设置映射到目录 #686

Closed
opened 2026-05-05 12:26:35 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @lujingju on GitHub (Aug 2, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/865

请问一下 一个二级域名怎么用frp映射到目录 例如 test.abc.com 映射到 test.abc.com/test

Originally created by @lujingju on GitHub (Aug 2, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/865 请问一下 一个二级域名怎么用frp映射到目录 例如 test.abc.com 映射到 test.abc.com/test
Author
Owner

@fatedier commented on GitHub (Aug 2, 2018):

Issue is only used for submiting bug report and documents typo.

<!-- gh-comment-id:409783900 --> @fatedier commented on GitHub (Aug 2, 2018): Issue is only used for submiting bug report and documents typo.
Author
Owner

@lujingju commented on GitHub (Aug 2, 2018):

哦,不好意思,那请问一下,这样的场景 现在的版本是否支持

<!-- gh-comment-id:409785568 --> @lujingju commented on GitHub (Aug 2, 2018): 哦,不好意思,那请问一下,这样的场景 现在的版本是否支持
Author
Owner
<!-- gh-comment-id:409790897 --> @fatedier commented on GitHub (Aug 2, 2018): https://github.com/fatedier/frp/blob/master/README_zh.md https://github.com/fatedier/frp/blob/master/README_zh.md#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6
Author
Owner

@lujingju commented on GitHub (Aug 2, 2018):

我看了所有的frpc的配置,没有发现这个配置,其实对于nginx相当简单,只需简单配置root就行,但这就需要frp和nginx配合使用,我只想知道frpc有没有这个能力,没有我就直接上nginx 不折腾了.

<!-- gh-comment-id:409792542 --> @lujingju commented on GitHub (Aug 2, 2018): 我看了所有的frpc的配置,没有发现这个配置,其实对于nginx相当简单,只需简单配置root就行,但这就需要frp和nginx配合使用,我只想知道frpc有没有这个能力,没有我就直接上nginx 不折腾了.
Author
Owner

@fatedier commented on GitHub (Aug 2, 2018):

文档和配置中的没有说明,通过相关功能无法实现的,那就是不支持了,所有能支持的功能文档和配置中都会做说明。

<!-- gh-comment-id:409830219 --> @fatedier commented on GitHub (Aug 2, 2018): 文档和配置中的没有说明,通过相关功能无法实现的,那就是不支持了,所有能支持的功能文档和配置中都会做说明。
Author
Owner

@lujingju commented on GitHub (Aug 2, 2018):

能不能考虑在未来的版本中添加,相当于域名重写.

<!-- gh-comment-id:409864184 --> @lujingju commented on GitHub (Aug 2, 2018): 能不能考虑在未来的版本中添加,相当于域名重写.
Author
Owner

@fatedier commented on GitHub (Aug 2, 2018):

http 相关的需求点太多了,在这个工具里实现过于麻烦,不如结合现有的组件一起使用,例如你提到的 nginx。

<!-- gh-comment-id:409865822 --> @fatedier commented on GitHub (Aug 2, 2018): http 相关的需求点太多了,在这个工具里实现过于麻烦,不如结合现有的组件一起使用,例如你提到的 nginx。
Author
Owner

@lujingju commented on GitHub (Aug 2, 2018):

好的,其实url重写是很基本的需求,如果有时间 可以考虑添加,毕竟nginx和frp有很多重合的地方,有时候要引起不必要的冲突,调整改配置,看日志,很浪费维护时间.

<!-- gh-comment-id:409869770 --> @lujingju commented on GitHub (Aug 2, 2018): 好的,其实url重写是很基本的需求,如果有时间 可以考虑添加,毕竟nginx和frp有很多重合的地方,有时候要引起不必要的冲突,调整改配置,看日志,很浪费维护时间.
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#686
No description provided.