【发布时间】:2020-06-25 14:43:27
【问题描述】:
我有一个在 Google App Engine 上运行的 Express/NodeJS 应用程序,我的 URL 格式为: project-name.appspot.com,其中 project-name:我的 google 项目名称
现在,对于站点验证,我使用的是 HTML 文件上传方法。
我提供google提供的html验证文件如下:
res.sendFile(path.join(__dirname, path_to_html_file))
现在,当我输入 url:https://project-name.appspot.com/,我可以查看文件。 此外,该文件的名称与 Google 提供的名称相同。
但是,当我在网站管理员中单击验证时,它仍然失败并显示错误消息“找不到文件”
谁能指出我做错了什么?
【问题讨论】:
-
Google 不是在尝试访问 url:
https://project-name.appspot.com/xxxxxxxx.html? -
谷歌指令是在project-name.appspot.com提供html文件
标签: node.js google-app-engine google-search-console