就是开了https,之前还能正常访问的,
今天突然http不能跳转https了,需要手动输入,
而且访问http显示错误信息。。。
哪位大牛知道怎么解决吗??
nginx1.12的。、
配置如下:
- server
- {
- listen 80;
- listen 443 ssl;
- server_name b.iiwl.cc;
- index index.php index.html index.htm default.php default.htm default.html;
- root /www/wwwroot/b.iiwl.cc;
- #error_page 404/404.html;
- ssl_certificate /etc/letsencrypt/live/b.iiwl.cc/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/b.iiwl.cc/privkey.pem;
- if ($server_port !~ 443){
- rewrite ^/.*$ https://$host$request_uri permanent;
- }
- error_page 497 https://$host$request_uri;
- error_page 404 /404.html;
- error_page 502 /502.html;
-
- include enable-php-71.conf;
- include /www/server/panel/vhost/rewrite/b.iiwl.cc.conf;
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- access_log off;
- }
- location ~ .*\.(js|css)?$
- {
- expires 12h;
- access_log off;
- }
- access_log /www/wwwlogs/b.iiwl.cc.log;
- }
复制代码
网站 b.iiwl.cc
不是广告,管理手下留情啊,,,
加了S就能访问。。。
|
|