在 infinispan 控制台(v.13 或 v.14)使用 nginx 反向代理时,不断出现这样的错误:
2024/07/22 12:45:26 [error] 28529#28529: *134318 upstream sent "Content-Length" and "Transfer-Encoding" headers at the same time while reading response header from upstream, client: 10.0.1.179, server: infinispan-dev, request: "GET /console /fonts/RedHatText-Regular.woff2 HTTP/1.1", upstream: "http://10.0.0.1:11222/console/fonts/RedHatText-Regular.woff2", host: "infinispan**", referrer: "https://infinispan*/console/app.css
控制台本身很慢并且无法加载所有数据 nginx 配置:
upstream infinispan {
server 10.0.1.194:11222;
server 10.0.1.195:11222;
server 10.0.1.196:11222;
}
server {
listen 443 ssl;
server_name infinispan*;
ssl_certificate /etc/nginx/certs/fullchain1.pem;
ssl_certificate_key /etc/nginx/certs/privkey1.pem;
client_max_body_size 32m;
error_page 500 502 503 504 /50x.html;
location / {
proxy_pass http://infinispan;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 300;
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding off;
}
location = /50x.html {
root /var/lib/nginx/html;
}
}
您能告诉我在哪里可以解决这个问题吗?
我尝试更改代理配置,但没有任何帮助
版本 13 和 14 中存在一个错误,导致无法正常运行。已在版本 15 中修复。