[GH-ISSUE #2259] 希望加入 vhost 的子域名通配支持 #1795

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

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

Originally created by @zhcharles on GitHub (Feb 26, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2259 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> **The solution you want** <!--A clear and concise description of the solution you want. --> 在指定了 vhost_http_port 后,在每一个配置项上需要指定 subdomain 来区别子域名的转发。现在 NGINX 支持通过 DNS 或 redis 的方式来动态调用后端转发了。因此希望可以在 frp 加入 subdomain = * 这样的支持,让这个配置项直接指去 NGINX,再由 NGINX 来做实际的分发。 这样做的好处是,新加入、修改、删除子域名配置,frp 或 nginx 都无论再维护和重启了。方便管理。 **Alternatives considered** <!--A clear and concise description of any alternative solutions or features you have considered. --> **How to implement this function** <!--Implementation steps for the solution you want. --> **Application scenarios of this function** <!--Make a clear and concise description of the application scenario of the solution you want. -->
Author
Owner

@zhcharles commented on GitHub (Feb 26, 2021):

试验了一下,不要用 subdomain 的配置,直接 custom_domains = *.frp.com 可以匹配。

<!-- gh-comment-id:786454390 --> @zhcharles commented on GitHub (Feb 26, 2021): 试验了一下,不要用 subdomain 的配置,直接 custom_domains = *.frp.com 可以匹配。
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#1795
No description provided.