现在是https://www.xxx.cn 是进行http2.0 协议进程传输的,但是我有的项目是在https://www.xxx.cn/xxx 下的,为什么这时候传输用的是htpp1.1?如何解决
问题出现的平台版本及自己尝试过哪些方法
不知道如何解决
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
location /admin{
root html;
index index.html;
try_files $uri $uri/ @rewrite;
}
location /blog{
root html;
index index.html;
try_files $uri $uri/ @rewrites;
}
location @rewrite{
rewrite ^(.*)$ /admin/index.html last;
}
location @rewrites{
rewrite ^(.*)$ /blog/index.html last;
}
你期待的结果是什么?实际看到的错误信息又是什么?
我希望同一端口下所有目录下项目都可以http2.0传输。
但是显示只有在xxx.cn 的情况才会有http2.0传输协议,
而xxx.cn/blog不开启。
已解决 配置必须写默认路径