It's lots of luck 2020-11-06 16:52 采纳率: 0%
浏览 23

The plain HTTP request was sent to HTTPS portnginx

server
    {
        listen 80;
        listen 443;
        #listen [::]:80;
        server_name j.dd1939k.cn;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/project/newPro/puapp;

        include rewrite/thinkphp.conf;
        #error_page   404   /404.html;

        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

        include enable-php.conf;

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /.well-known {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log off;
    }

之前代码配置了443端口无备案访问,最近用正式域名配置了https之后无法访问了,求大神解惑

  • 写回答

2条回答 默认 最新

  • It's lots of luck 2020-11-06 16:57
    关注
    评论

报告相同问题?