Nginx.rst 559 B

12345678910111213141516
  1. Usage with nginx
  2. =============
  3. If you are using nginx as a webserver, it will try to buffer the response.
  4. So you'll want to disable this with a custom header:
  5. .. code-block:: php
  6. header('X-Accel-Buffering: no');
  7. # or with the Response class from Symfony
  8. $response->headers->set('X-Accel-Buffering', 'no');
  9. Alternatively, you can tweak the
  10. `fastcgi cache parameters <https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_buffers>`_
  11. within nginx config.
  12. See `original issue <https://github.com/maennchen/ZipStream-PHP/issues/77>`_.