在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Student007/koa-sub-domain开源软件地址:https://github.com/Student007/koa-sub-domain开源编程语言:JavaScript 98.9%开源软件介绍:koa-sub-domainSimple and lightweight Koa middleware to handle multilevel and wildcard subdomains Install
Usage
Advantage usageIn the case you are running multiple domains on this server, you can add FQDN instead of only sub. Also you may user Koa-router routes same as generator functions as target of a domain.
Also wildcards for the last sub domain are handled same as deeper domains below the *
So Of cause you can handle multilevel subdomains in chain:
Note: The order of chaining is important ! Tipps for developmentYou need a DNS server or you can add all the FQDNs into your
An other way would be to use dnsmasq. You need simple one line in the
Note: the PerformanceYou can optimize performance by knowing the steps Koa-sub-domain is resolving:
That means FQDNs should be resolved the fastest. LicenseNote: If you are working for a big company please notice my works as I would be an external - small companies please donate by project success. Open Source contributors: I do not expext something - I love to give you something back !! ###Notes TODO: checking out whether yield has to be replaced by return because of there is no more following match ! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论