小编Ara*_*iee的帖子

检查 robots.txt 时收到“财产不在帐户中?”

我在谷歌搜索控制台中看到许多状态为“排除”的网址,当我单击“TEST ROBOTS.TXT BLOCKING”时,出现以下错误:

Property not in account

You are verified to see sc-domain://, but it's not in your account.
Run Code Online (Sandbox Code Playgroud)

当我点击时add property now什么也不会发生

当我将浏览器中的 URL 从 更改为 时,https://www.google.com/webmasters/tools/robots-testing-tool?siteUrl=sc-domain%3Amysite.com&path=&utm_source=search_console&utm_campaign=index-panel&hl=enhttps://www.google.com/webmasters/tools/robots-testing-tool?siteUrl=https://%3Amysite.com&path=&utm_source=search_console&utm_campaign=index-panel&hl=en会要求我再次将 URL 添加为属性;虽然我已经添加了域属性

我还清除了 robots.txt 以确保没有任何内容被阻止,但在 8 天多之后,我看到搜索控制台中大约有 150 万个 URL 被阻止

robots.txt google-search-console

5
推荐指数
1
解决办法
3058
查看次数

无法从 Windows 浏览器访问 wsl 上的 nginx 站点

我安装了 wsl2 => 然后 ubuntu => 然后 nginx => php.fpm (我需要的版本) 然后添加mysite.local.conf到我的 nginx 配置中,但无法从 Windows 访问 wsl 上的网站

nginx配置代码:

server {
        listen 80 default_server;
        server_name mysite.local *.mysite.local;

        root /mnt/d/projects/arash/original/Web/frontend/web;
        

        access_log /mnt/d/projects/arash/original/logs/arash-access.log;
        error_log /mnt/d/projects/arash/original/logs/arash-error.log;


        location ~* ^/backend$ {
                rewrite ^ http://backend.mysite.local permanent; #301 redirect
        }

        location ~* ^/setting$ {
                rewrite ^ http://setting.mysite.local permanent; #301 redirect
        }

        if ($host ~* ^(arash\.local)) {
        rewrite ^ http://www.$host$uri permanent; #301 redirect
        }

        location ~ /\. {
                deny all;
        }

        location / {
                index …
Run Code Online (Sandbox Code Playgroud)

php windows-subsystem-for-linux nginx-config

5
推荐指数
1
解决办法
6269
查看次数