【问题标题】:Laravel Forge download limit (1024MB)Laravel Forge 下载限制 (1024MB)
【发布时间】: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


【解决方案1】:

增加 Nginx fastcgi_max_temp_file_size 解决了这个问题。

【讨论】:

    猜你喜欢
    • 2017-11-20
    • 2019-08-09
    • 2014-06-05
    • 2016-02-09
    • 1970-01-01
    • 2021-08-11
    • 2011-09-18
    • 2018-03-10
    • 1970-01-01
    相关资源
    最近更新 更多