【发布时间】:2017-01-23 10:33:11
【问题描述】:
当尝试使用 PHP “return response()->download(...);”从服务器下载大于 1024MB 的文件时它不会下载超过 1024MB。
当从 public_html 下载而不是通过 PHP 时,可以下载更大的文件。
Nginix 错误:
2016/09/15 13:23:58 [error] 5801#5801: *198201 readv() failed (104: Connection reset by peer) while reading upstream, client: xx.xx.xx.xx, server: xxxxxx.com, request: "GET /test HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "xxxxxx.com"
使用:Laravel Forge、Laravel 5.1、Nginx、PHP 7。
【问题讨论】:
标签: php laravel nginx laravel-5 php-7