求助,怎么也过不了百度HTTPS认证

搬瓦工机场JMS

弄了一个typecho博客,想让百度收录。可是无论如何都过不了HTTPS认证,我想应该是Nginx配置有问题,但是不知道应该怎么改比较好

请各位大佬们帮忙看看

先谢谢了

这是报错截图

这是Nginx配置
server {
    listen 80;
    listen [::]:80;
    root /var/www/html;
    index  index.php index.html index.htm;
    server_name http://www.域名.com 域名.com;

        if (!-e $request_filename) {
                rewrite ^(.*)$ /index.php$1 last;
        }
     client_max_body_size 100M;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }
        location ~ \.php(\/.*)*$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
                set $path_info "";
                set $real_script_name $fastcgi_script_name;
                if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
                        set $real_script_name $1;
                        set $path_info $2;
                }
                fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
                fastcgi_param SCRIPT_NAME $real_script_name;
                fastcgi_param PATH_INFO $path_info;
        }

        location ~* \.(db)$ {
             deny all;
        }

    if ($scheme != "https") {
        return 301 https://$host$request_uri;
    }

    listen [::]:443 ssl; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/域名.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/域名.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

河北网友:全站跳转,你可能引用了http的?,我瞎说的
云南网友:过了又怎样呢 还是只收录主页呀
安徽网友:不是很懂,配置应该怎么改呢?
山西网友:想着收录个主页至少还有点人气,哈哈
湖南网友:放个单页,然后把http301关掉,让https和http都能访问,我就是这样过的

未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » 求助,怎么也过不了百度HTTPS认证

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏