Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache equivalent of Nginx `proxy_buffering off`

I have an application that requires me to disable buffering in the reverse proxy. I managed to do that with the following nginx configuration:

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;
}

I need to have the same setup working on Apache but apache doesn't have a proxy_buffering off directive. The only conf that I was able to find in the mod_proxy docs is ProxyIOBufferSize and ProxyReceiveBufferSize but they have a minimun value instead of an option to disable buffering. I tested with those but my application fails.

like image 670
DavidGamba Avatar asked May 07 '15 17:05

DavidGamba


1 Answers

flushpackets=on means flushing out the buffer after each chunk is sent

This example is from the guacamole docs: 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>
like image 176
Flotastisch Avatar answered Oct 17 '22 04:10

Flotastisch