阿里云服务器开通实例,但是浏览器不能访问是怎么回事?

2020-07-25 10:35:14 +08:00
 zhangsan5421

在阿里云申请了域名、空间、绑定了域名,申请了 ssl,通过浏览器不能正常访问。不知道怎么而回事? 下面是检测端口的操作截图。 通过命令窗口检查域名绑定情况。我的域名是:xxzx.club 下面是 nginx.conf 的设置

vim /etc/nginx/nginx.conf

# For more information on configuration, see:
#   * Official English Documentation: http://nginx.org/en/docs/
#   * Official Russian Documentation: http://nginx.org/ru/docs/

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;

events {
    worker_connections 1024;
}

http {
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         on;
    keepalive_timeout   65;
    types_hash_max_size 2048;

    include             /etc/nginx/mime.types;
    default_type        application/octet-stream;

    # Load modular configuration files from the /etc/nginx/conf.d directory.
    # See http://nginx.org/en/docs/ngx_core_module.html#include
    # for more information.
    include /etc/nginx/conf.d/*.conf;

    server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name xxzx.club   www.xxzx.club;
        root         /usr/share/nginx/html;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;
        rewrite ^(.*) https://$host$1 permanent;

        location / {
        root    /usr/share/nginx/html;
        index   index.html;
        }


        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }

# Settings for a TLS enabled server.
#
    server {
        listen       443 ssl http2 default_server;
        listen       [::]:443 ssl http2 default_server;
        server_name  xxzx.club www.xxzx.club;
        root         /usr/share/nginx/html;
        ssl     on;
        ssl_certificate /etc/nginx/cert/www.xxzx.club.pem;
        ssl_certificate_key /etc/nginx/cert/www.xxzx.club.key;
        ssl_session_cache shared:SSL:1m;
        ssl_session_timeout  10m;
       # ssl_ciphers PROFILE=SYSTEM;
        #rewrite ^(.*)$ https://www.xxzx.club permanent; 
        ssl_prefer_server_ciphers on;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location / {
        root    /usr/share/nginx/html;
        index   index.html;
        }

        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }

}


在浏览器中输入 https://xxzx.club 或者 https://www.xxzx.club 都会出现下面的无法打开的界面。

不知道错在哪里地方,请大家指教。谢谢。

3908 次点击
所在节点    NGINX
26 条回复
zhangsan5421
2020-07-26 12:59:32 +08:00
@lysS 下次找个国外的服务器。
zhangsan5421
2020-07-26 13:00:11 +08:00
@shenwu35 看样子第一印象很重要。
zhangsan5421
2020-07-26 13:00:35 +08:00
@IgniteWhite 已经申请备案了。希望周一或者周二能完成。
zhangsan5421
2020-07-26 13:01:51 +08:00
@xiri 我用的是 chrome 浏览器。http 之后会改成 https 了。我现在申请备案了。希望顺利通过。
zhangsan5421
2020-07-26 19:20:21 +08:00
我现在知道网站备案真的麻烦。今天收到阿里的电话,阿里通过了,还要到管理局审核。又要等待。
zhensjoke
2020-07-26 21:48:06 +08:00
应该是安全组的问题...备案应该有阻断提示的。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/692969

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX