Apache相当于Nginx`agex_buffering off`

Dav*_*idG 8 apache reverse-proxy nginx mod-proxy

我有一个应用程序,要求我在反向代理中禁用缓冲.我设法使用以下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;
}
Run Code Online (Sandbox Code Playgroud)

我需要在Apache上使用相同的设置,但apache没有proxy_buffering off指令.我能够在mod_proxy文档中找到的唯一配置是ProxyIOBufferSize,ProxyReceiveBufferSize但它们具有最小值而不是禁用缓冲的选项.我测试了那些,但我的应用程序失败了.

小智 3

lushpackets=on表示发送每个块后刷新缓冲区

此示例来自鳄梨酱文档: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>
Run Code Online (Sandbox Code Playgroud)