依剑听雨 发表于 2016-3-15 18:16:26

https为什么访问不了?

listen 80;
server_name dayin.moving315.com;
location /.well-known/ {
add_header Content-Type 'text/plain;';
root /home/wwwroot/dayin.moving315.com/public;
}
location / {
return 301 https://dayin.moving315.com$request_uri;
}
}
server
    {
      listen 443 ssl http2;
      #listen [::]:443 ssl http2;
      ssl_certificate /etc/letsencrypt/live/dayin.moving315.com/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/dayin.moving315.com/privkey.pem;
                ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
      ssl_prefer_server_ciphers on;
      ssl_session_cache shared:SSL:10m;
                add_header Strict-Transport-Security "mdown-age=63072000; includeSubdomains; preload";
      server_name dayin.moving315.com;
      index index.html index.htm index.php default.html default.htm default.php;
      root/home/wwwroot/dayin.moving315.com/public;
      
      #error_page   404   /404.html;
      include enable-php.conf;
                location / {
            try_files $uri $uri/ /index.php?$query_string;
      }

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

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

      access_log off;
    }

http://chuantu.biz/t2/31/1458036814x3738746559.png

licess 发表于 2016-3-15 20:02:19

可能防火墙没开443端口
页: [1]
查看完整版本: https为什么访问不了?