mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2259] 希望加入 vhost 的子域名通配支持 #1795
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#1795
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 @zhcharles on GitHub (Feb 26, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2259
The solution you want
在指定了 vhost_http_port 后,在每一个配置项上需要指定 subdomain 来区别子域名的转发。现在 NGINX 支持通过 DNS 或 redis 的方式来动态调用后端转发了。因此希望可以在 frp 加入 subdomain = * 这样的支持,让这个配置项直接指去 NGINX,再由 NGINX 来做实际的分发。
这样做的好处是,新加入、修改、删除子域名配置,frp 或 nginx 都无论再维护和重启了。方便管理。
Alternatives considered
How to implement this function
Application scenarios of this function
@zhcharles commented on GitHub (Feb 26, 2021):
试验了一下,不要用 subdomain 的配置,直接 custom_domains = *.frp.com 可以匹配。