注意:部分文章发布时间较长,可能存在未知因素,购买时建议在本站搜索商家名称,先充分了解商家动态。
交流:唯一投稿邮箱:hostvps@88.com。
网友 妖言惑众 说:
因为http2支支持**l,所以80访问的时候是直接报错的,如果在这种情况下自动跳转到443呢?因为直接访问80是报错的,所以下面其他的判断跳转是不生效的
网友 xshell 说:
******
{
listen 80;
listen 443 **l http2;
******_name ;
index index.php index.html index.htm def**lt.php def**lt.htm def**lt.html;
**ot /www/www**ot/;
#digitalocean nginx配置
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
******_tokens off;
log_not_found off;
types_hash_max_size 2048;
types_hash_bucket_size **;
client_max_body_size 16M;
#禁止某个人IP访问
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
#er**r_page 404/404.html;
#HTTP_TO_HTTPS_START
if ($******_port !~ 443){
rew**te ^(/.*)$ https://$host$1 permanent;
}
网友 妖言惑众 说:
xshell 发表于 2022-6-24 13:50
我这个难道是假的http2?