我有一个应用程序,要求我在反向代理中禁用缓冲。我通过以下nginx配置成功地做到了这一点:
server {
listen 80;
server_name 10.0.0.104;
location / {
proxy_buffering off;
proxy_request_buffering off;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://http_backend;
proxy_redirect default;
}
}
upstream http_backend {
server 10.0.0.86:8080;
keepalive 16;
}
我需要在Apache上使用相同的设置,但是apache没有proxy_buffering off
指令。我能够在代理文档中找到的唯一conf是ProxyIOBufferSize
和ProxyReceiveBufferSize
,但是它们有一个最小值,而不是一个禁用缓冲的选项。我用这些工具进行了测试,但我的应用程序失败了。
发布于 2021-06-01 19:22:58
flushpackets=on意味着在发送每个块之后清除缓冲区。
这个例子来自于guacamole文档:https://guacamole.apache.org/doc/gug/proxying-guacamole.html#proxying-with-apache
<Location /guacamole/>
Order allow,deny
Allow from all
ProxyPass http://HOSTNAME:8080/guacamole/ flushpackets=on
ProxyPassReverse http://HOSTNAME:8080/guacamole/
</Location>
https://stackoverflow.com/questions/30107888
复制相似问题