为什么全站 HTTP 转 HTTPS 慢的不行, 每次打开网站要一分钟,才跳转!~~~~

2018-04-03 17:59:53 +08:00
 hanjunlei

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; }

每次打开网站要一分钟,才跳转!~~~~

什么问题。。。。。。。。。。。。
2868 次点击
所在节点    问与答
5 条回复
hanjunlei
2018-04-03 18:00:22 +08:00
取消跳转后访问很快!~~
torbrowserbridge
2018-04-03 18:01:09 +08:00
http 跳 https ?直接访问 https 速度呢?
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/
hanjunlei
2018-04-03 22:19:02 +08:00
不跳转很快的。
msg7086
2018-04-04 06:15:54 +08:00
请把这一分钟里浏览器的请求和时间分片信息贴出来。

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

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

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

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

© 2021 V2EX