当前位置: 首页 > 工具软件 > IUWM-Site > 使用案例 >

服务器一直收到/.well-known/apple-app-site-association报错

袁晋鹏
2023-12-01

微信配置采用了苹果的 Universal Links 方式配置。我们的项目配置完发版后运维反馈一直收到 /.well-known/apple-app-site-association 接口报错404。
以前配置的时候直接放在服务器根目录的,官方文档是这么说的

Create an apple-app-site-association file that contains JSON data about the URLs that your app can handle.

Upload the apple-app-site-association file to your HTTPS web server. You can place the file at the root of your server or in the .well-known subdirectory.

Prepare your app to handle universal links.

这个文档是旧版的,新版文档如下

After you construct the association file, place it in your site’s .well-known directory. The file’s URL should match the following format:

https://<fully qualified domain>/.well-known/apple-app-site-association
You must host the file using https:// with a valid certificate and with no redirects.

没有提到放在根目录了,以后配置就按官方文档直接把 apple-app-site-association 这个文件放在 .well-known 目录下就好了。

很多教程也是说的放到根目录或者 .well-known目录,应该都是参照旧版文档。

平时还是要多看官方文档啊,像我这种只会百度不会看文档的,只有出了问题才会发现自己又落伍了。

积极学习,与时俱进。
积极学习,与时俱进。
积极学习,与时俱进。

 类似资料: