为什么 nginx 尝试通过 SSL 提供服务

为什么 nginx 尝试通过 SSL 提供服务

我是 nginx 新手。因此,我知道我需要发布更多信息。抱歉一开始信息不足。

我的第一台 nginx 服务器已设置虚拟域。问题域是外部名称服务器上设置了 DNS(A 记录)的子域。

当我输入域名时,系统会将我定向到我的服务器的 IP,但是通过 https。连接被拒绝。这是我的域名的 .conf:

 server {
    listen *:80;


    server_name dev.imageweaversmarketing.com ;

    root   /var/www/dev.imageweaversmarketing.com/web;



    index index.html index.htm index.php index.cgi index.pl index.xhtml;

    error_log /var/log/ispconfig/httpd/dev.imageweaversmarketing.com/error.log;
    access_log /var/log/ispconfig/httpd/dev.imageweaversmarketing.com/access.log combined;

    location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }
  location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    location /stats/ {

        index index.html index.php;
        auth_basic "Members Only";
        auth_basic_user_file /var/www/clients/client0/web2/web/stats/.htpasswd_stats;
    }

    location ^~ /awstats-icon {
        alias /usr/share/awstats/icon;
    }

  location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    location /stats/ {

        index index.html index.php;
        auth_basic "Members Only";
        auth_basic_user_file /var/www/clients/client0/web2/web/stats/.htpasswd_stats;
    }

    location ^~ /awstats-icon {
        alias /usr/share/awstats/icon;
    }
  location ~ \.php$ {
        try_files /cdb8ed7968b49bb25b7be537a21b99cb.htm @php;
    }

    location @php {
        try_files $uri =404;
        include /etc/nginx/fastcgi_params;
        fastcgi_pass unix:/var/lib/php5-fpm/web2.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_intercept_errors on;
    }

 }

有人可以帮忙吗?

相关内容