Apache:请求实体太大

Apache: Request Entity Too Large

我正在处理一个 laravel 项目,文件上传在较小的文件上工作正常,但是当我尝试上传一个 400+ Meg 的示例数据文件时,我得到

Request Entity Too Large

The requested resource
/table/create/import
does not allow request data with POST requests, or the amount of data
provided in the request exceeds the capacity limit.

我检查了我的 php.ini 文件并尝试按照我找到的说明设置以下内容

upload_max_filesize = 5000M
post_max_size = 10000M
max_input_time = 300
max_execution_time = 500

我还尝试在文件上传到的文件夹中的 httpd.conf 文件中设置 LimitRequestBody。

<Directory "/var/www/html/project-css/storage/app/flatfiles">
    LimitRequestBody 0 
</Directory>

我 运行 在 centos 的 vagrant 设置中。我已经研究了几天了,但还没有找到答案。有人有什么想法吗?

发现问题出在 mod_security.conf 中的 mod_security 我能够增加 SecRequestBodyLimit 的大小以便能够上传文件。