为了能快速了解并处理您的问题,请提供以下基础信息: 系统版本:Debian GNU/Linux 11 x86_64(Py3.7.9) 问题描述:通过宝塔配了反代,源站是 http 的(只在转发站上配了ssl,因为想着到源站没必要再套 https 了),之前配着反代一直能用。但最近新接入的网站。用过一样的方法。访问就会报 ERR_HTTP2_PROTOCOL_ERROR 这是哪里配置有问题么。
相关截图(日志、错误): 配置
- #PROXY-START/
- location ^~ /
- {
- proxy_pass http://aaaa;
- proxy_set_header Host aaaa;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header REMOTE-HOST $remote_addr;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection $connection_upgrade;
- #proxy_http_version 1.1;
- # proxy_hide_header Upgrade;
- proxy_max_temp_file_size 0;
- add_header X-Cache $upstream_cache_status;
- #Set Nginx Cache
- set $static_filejTNGj6T2 0;
- if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)[ DISCUZ_CODE_0 ]quot; )
- {
- set $static_filejTNGj6T2 1;
- expires 1m;
- }
- if ( $static_filejTNGj6T2 = 0 )
- {
- add_header Cache-Control no-cache;
- }
- }
- #PROXY-END/
复制代码
求大佬解惑
|
|