有馬総一郎のブログ

(彼氏の事情)

2023年03月25日 05:27:51 JST - 1 minute read - Comments - Linux

Nextcloudの`"X-Robots-Tag" HTTPヘッダーが "noindex, nofollow"に設定されていません。これらは潜在的なセキュリティまたはプライバシーのリスクになります。この設定を調整することをお勧めします`の警告を解消する

バージョン 25.0.5 にアップデートしたときに、セットアップ警告として"X-Robots-Tag" HTTPヘッダーが "noindex, nofollow"に設定されていません。 これらは潜在的なセキュリティまたはプライバシーのリスクになります。この設定を調整することをお勧めしますと表示されるようになった。

Nextcloud 25.0.5

なるほど、逆に今まで出なかったのが不思議だ。

NGINX configuration — Nextcloud latest Administration Manual latest documentation

/etc/nginx/sites-available/nextcloud.conf

-        add_header X-Robots-Tag                         "none"              always;
+        add_header X-Robots-Tag                         "noindex, nofollow" always;

となるように以下のコマンドを打って終了。

$ sudoedit /etc/nginx/sites-available/nextcloud.conf
$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
$ sudo systemctl restart nginx.service

どう違うのか?といえば „X-Robots-Tag“-HTTP-Header not configured with „noindex, nofollow“ since NC 26.0.0 - ℹ️ Support - Nextcloud communityに書いてあった。

Because “none” is indeed equivalent to “noindex, nofollow” for Google, but seems to be not supported by Bing and probably other search engines.
Look here: https://github.com/nextcloud/server/pull/36689

「none」は実際には Google の「noindex、nofollow」と同等ですが、Bing やおそらく他の検索エンジンではサポートされていないようです。
こちらをご覧ください: https://github.com/nextcloud/server/pull/36689

なるほど。

Tags: Ubuntu Server Nextcloud

Rakuten Link(楽天リンク)で非通知(つうちふか)されてしまうのを通知可(つうちか)とする Linuxインストール後の作業(俺メモ)2023 その1

comments powered by Disqus