[英]Facebook Application Hosting
With the latest updates to Facebook and future upcoming changes, would I be able to develop apps hosted on a central domain? 借助Facebook的最新更新以及未来的更改,我是否能够开发托管在中央域中的应用程序? Ie, all of my apps will go on the back of https://www.myappdomain.com/ and structured as follows: 即,我所有的应用程序都将放在https://www.myappdomain.com/的背面,其结构如下:
//https://www.myappdomain.com/clients/AppName1/ <br>
//https://www.myappdomain.com/clients/AppName2/ <br>
//https://www.myappdomain.com/clients/AppName3/ <br>
//https://www.myappdomain.com/clients/AppName4/ <br>
We do this using subdomains and a wildcard certificate on mydomain.com. 我们使用mydomain.com上的子域和通配符证书来执行此操作。 This gives more flexibility when setting up DNS I find. 在设置我发现的DNS时,这提供了更大的灵活性。
https://client.myappdomain.com/
The only catch with this is that a wildcard certificate will only match one level of subdomain 唯一要注意的是,通配符证书将仅匹配一个级别的子域
https://client.myappdomain.com/
will work https://client.myappdomain.com/
可以使用
https://app1.client.myappdomain.com/
will not work https://app1.client.myappdomain.com/
无法正常工作
To solve this, we conactenate the client and app name. 为了解决这个问题,我们设定了客户端和应用名称。 This saves the cost of multiple wildcard certificates. 这样可以节省多个通配符证书的成本。 So we end up with: 因此,我们最终得到:
https://app1_client.myappdomain.com/
or 要么
https://client_app1.myappdomain.com/
if you prefer. 如果你更喜欢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.