我的网站不断重定向,即使所有 https 在 Cloudflare 和 NGINX 中都被禁用

My website keeps redirecting even all https is disabled in Cloudflare and NGINX

我的 Cloudflare + NGINX 配置有几个问题。在服务器和 Cloudflare 中使用相同的配置,有些网站对我有用,而另一些则不起作用。因此,我遇到的主要问题是无法使用的域是,当未在 Cloudflare 或 NGINX 中配置时,它们会继续重定向到 HTTPS。所以问题是如何修复自动重定向 HTTPS,因为我现在想使用 HTTP。也许社区中有些人有同样的问题。谢谢!

这里有一些关于我的不工作域的捕获raventechnology.es IP 地址隐藏隐私和攻击。

站点的Nginx配置文件:

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as a reference inside of sites-available where it will continue to be
# updated by the Nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or WordPress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

# Default server configuration
#
server {
    listen 80;
    listen [::]:80;

    # SSL configuration
    #
    # listen 443 ssl default_server;
    # listen [::]:443 ssl default_server;
    #
    # Note: You should disable gzip for SSL traffic.
    # See: https://bugs.debian.org/773332
    #
    # Read up on ssl_ciphers to ensure a secure configuration.
    # See: https://bugs.debian.org/765782
    #
    # Self-signed certs generated by the SSL-cert package
    # Don't use them in a production server!
    #
    # include snippets/snakeoil.conf;

    root /var/www/html/raventechnology;

    # Add index.php to the list if you are using PHP
    index index.php index.html;

    server_name raventechnology.es www.raventechnology.es;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ /index.php?$args;
    }

    # pass PHP scripts to FastCGI server
    #
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
    
        # With php-fpm (or other unix sockets):
        fastcgi_pass unix:/run/php/php8.0-fpm.sock;
    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with Nginx's one
    #
    #location ~ /\.ht {
    #   deny all;
    #}
}

对于上面的域,似乎在某个时候启用了 HSTS。这意味着您的站点已预加载到浏览器列表中,告诉浏览器它必须通过 HTTPS 加载。这意味着该网站必须在 HTTPS 期间提供服务,直到 HSTS 政策到期时间之后。

https://hstspreload.org/?domain=raventechnology.es