【问题标题】:How to add a site to Yandex which is hosted in Azure?如何将站点添加到托管在 Azure 中的 Yandex?
【发布时间】:2013-12-17 13:02:38
【问题描述】:

网站正在 Azure(云服务)上运行。要被 Yandex 索引,我需要将下面的 html 文件放在根目录中。

<html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head>
    <body>Verification: 123456d0a12</body>
</html>

它不像普通网络服务器的“www”文件夹那样工作。有人知道吗?

我在“Azure.Service\bin\Release\app.publish\Azure.Service.cspkg”下找到了该文件。试图打开它。看起来像:

请提供更多帮助!

【问题讨论】:

    标签: asp.net-mvc azure azure-web-app-service yandex


    【解决方案1】:

    您需要在服务包 (cspkg) 文件中包含 yandex_123456d0a12.html 文件,以便将其与您的 Web 角色一起部署(在云服务中)。

    此处列出了验证 Yandex 的其他选项:http://api.yandex.com/webmaster/doc/dg/reference/hosts-type.xml。如果您不想重新部署应用程序,添加 TXT 记录(DNS 级别)可能会更容易。这不需要您重新部署应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-28
      • 1970-01-01
      • 2021-06-08
      • 2018-05-17
      • 1970-01-01
      • 2022-06-11
      • 1970-01-01
      • 2023-03-09
      相关资源
      最近更新 更多