mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #337] 如何方便处理大量域名? #245
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#245
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 @HappyHam on GitHub (May 26, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/337
当域名比较多时,在 c 端增删非常麻烦,有没有类似 default的参数,没有指定 custom_domains 的就都扔某个端口让web服务器去处理它们,就方便了。
@zhfish commented on GitHub (May 28, 2017):
特权模式,泛解析
@HappyHam commented on GitHub (May 28, 2017):
泛解析仍然是解析的一个域名的子域名而已啊,不是多个域名。
@yi commented on GitHub (Jun 12, 2017):
把 frp 完全当通道用
公网服务器nginx做一套虚拟主机,全部转发给 frps
本地同样nginx 做一套虚拟主机,处理 frpc 发过来的请求
done
@36bian commented on GitHub (Nov 5, 2018):
服务器不需要安装nginx,直接在frps.ini中配置:
客户端frpc.ini中配置:
剩下的配置客户端nginx解析就可以了。但是不支持https
@dick129418 commented on GitHub (Dec 5, 2018):
@36bian 大兄弟,我的0.16版本custom_domains = *.example.com为啥不行呢, 还是说这个是你猜测的
@36bian commented on GitHub (Dec 5, 2018):
example.com 是示例域名,要改成自己的。
@dick129418 commented on GitHub (Dec 5, 2018):
@36bian 额,我不至于这么傻。。
我的这个只能
连
custom_domains = git.xxx.xyz,貌似都不行@dick129418 commented on GitHub (Dec 5, 2018):
frps 和 fprc 都启动成功后,通过 test.frps.com 就可以访问到内网的 web 服务。
需要注意的是如果 frps 配置了 subdomain_host,则 custom_domains 中不能是属于 subdomain_host 的子域名或者泛域名。
同一个 http 或 https 类型的代理中 custom_domains 和 subdomain 可以同时配置。
------------------》》》》》》》》》》》》
搞定了。看了首页说明,原来服务器端不能配置这个 subdomain_host