VPS侦探论坛

 找回密码
 注册
查看: 3760|回复: 1

https为什么访问不了?

[复制链接]
发表于 2016-3-15 18:16:26 | 显示全部楼层 |阅读模式

  1. listen 80;
  2. server_name dayin.moving315.com;
  3. location /.well-known/ {
  4. add_header Content-Type 'text/plain;';
  5. root /home/wwwroot/dayin.moving315.com/public;
  6. }
  7. location / {
  8. return 301 https://dayin.moving315.com$request_uri;
  9. }
  10. }
  11. server
  12.     {
  13.         listen 443 ssl http2;
  14.         #listen [::]:443 ssl http2;
  15.         ssl_certificate /etc/letsencrypt/live/dayin.moving315.com/fullchain.pem;
  16.         ssl_certificate_key /etc/letsencrypt/live/dayin.moving315.com/privkey.pem;
  17.                 ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  18.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  19.         ssl_prefer_server_ciphers on;
  20.         ssl_session_cache shared:SSL:10m;
  21.                 add_header Strict-Transport-Security "mdown-age=63072000; includeSubdomains; preload";
  22.         server_name dayin.moving315.com;
  23.         index index.html index.htm index.php default.html default.htm default.php;
  24.         root  /home/wwwroot/dayin.moving315.com/public;
  25.         
  26.         #error_page   404   /404.html;
  27.         include enable-php.conf;
  28.                 location / {
  29.             try_files $uri $uri/ /index.php?$query_string;
  30.         }

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

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

  39.         access_log off;
  40.     }
复制代码


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-3-15 20:02:19 | 显示全部楼层


可能防火墙没开443端口
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-29 01:16 , Processed in 0.025428 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表