为两个不同的 Web 应用程序使用 Firebase SSL 托管
Use Firebase SSL Hosting for two different web applications
看来我只能将一个顶级域 (TLD) 与一个 firebaseapp SSL 托管相关联。是真的吗?
例如,我想要 https://x.example.com to go to my https://x.firebaseapp.com and https://y.example.com to go to my https://y.firebaseapp.com
当我尝试时,我看到:(见下图)(我正在使用 https://city.tidalforce.org/ for a different firebase app at https://cityregister.firebaseapp.com/ but I'd like to use the same domain for another app with another full name such as https://y.tidalforce.org
这可能吗?
简而言之,不,尽管您可以在不同的子文件夹中托管不同的应用程序,例如 https://example.com/x, https://example.com/y 并且如果它们有 javascript 路由器,例如,如果您使用 Angular前端并使用 Angular-router 或您需要提供适当的重写规则的东西,例如:
"rewrites": [ {
"source" : "/x/**",
"destination" : "/x/index.html"
},
{
"source" : "/grid/**",
"destination" : "/grid/index.html"
} ]
重写来自该文件夹的 url 请求以正确路由。
希望对您有所帮助:)
看来我只能将一个顶级域 (TLD) 与一个 firebaseapp SSL 托管相关联。是真的吗?
例如,我想要 https://x.example.com to go to my https://x.firebaseapp.com and https://y.example.com to go to my https://y.firebaseapp.com
当我尝试时,我看到:(见下图)(我正在使用 https://city.tidalforce.org/ for a different firebase app at https://cityregister.firebaseapp.com/ but I'd like to use the same domain for another app with another full name such as https://y.tidalforce.org
这可能吗?
简而言之,不,尽管您可以在不同的子文件夹中托管不同的应用程序,例如 https://example.com/x, https://example.com/y 并且如果它们有 javascript 路由器,例如,如果您使用 Angular前端并使用 Angular-router 或您需要提供适当的重写规则的东西,例如:
"rewrites": [ {
"source" : "/x/**",
"destination" : "/x/index.html"
},
{
"source" : "/grid/**",
"destination" : "/grid/index.html"
} ]
重写来自该文件夹的 url 请求以正确路由。
希望对您有所帮助:)