【问题标题】:nginx robots.txt for two different domains and nginx.conf - but robots.txt in one foldernginx robots.txt 用于两个不同的域和 nginx.conf - 但 robots.txt 在一个文件夹中
【发布时间】:2021-12-12 19:49:31
【问题描述】:

我使用 Shopware 并且有两个不同的网上商店,有两个域,即 domainA 和 domainB。现在,他们在两个域的公共文件夹中只有一个 robots.txt 文件。

我需要使用 domainA 上网,但不能这样做,因为在 Google 中应该找不到 domainB 等。我有 domainA.conf 和 domainB.conf,如何使用两个不同的 robots.txt 文件?每个域对应一个域?

【问题讨论】:

标签: nginx robots.txt shopware


【解决方案1】:
location /robots.txt {
    alias /var/www/html/shopware/public/robots/robots.txt;
}

【讨论】:

  • 您好 JohannesH,请编辑您的答案以添加简短描述。
猜你喜欢
  • 2014-12-06
  • 2011-02-16
  • 1970-01-01
  • 1970-01-01
  • 2013-06-06
  • 1970-01-01
  • 1970-01-01
  • 2012-07-07
  • 2023-03-07
相关资源
最近更新 更多