server { listen 80; server_name www.fengyibbk.com; rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https #return 301 https://$http_host$request_uri; }
每次打开网站要一分钟,才跳转!~~~~
什么问题。。。。。。。。。。。。
1
hanjunlei OP 取消跳转后访问很快!~~
|
2
torbrowserbridge 2018-04-03 18:01:09 +08:00
http 跳 https ?直接访问 https 速度呢?
|
3
yytsjq 2018-04-03 18:36:22 +08:00
那条 rewrite 规则没必要吧。。
server { listen 80 default_server; listen [::]:80 default_server; # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. return 301 https://$host$request_uri; } https://mozilla.github.io/server-side-tls/ssl-config-generator/ |
4
hanjunlei OP 不跳转很快的。
|
5
msg7086 2018-04-04 06:15:54 +08:00
请把这一分钟里浏览器的请求和时间分片信息贴出来。
|