413请求实体过大 - 文件上传问题 [英] 413 Request Entity Too Large - File Upload Issue
问题描述
我试图上传30MB文件,我的服务器和它不工作的。
I am trying to upload 30MB file on my server and its not working.
-
当我上传30MB的文件,在页面加载网页未找到
当我上传3MB的文件,我收到 413请求实体过大nginx的/ 0.6.32
When I upload a 3MB file, I receive "413 Request Entity Too Large" with nginx/0.6.32
我试图找到nginx的,所以我可以增加 client_max_body_size 但我无法找到我的服务器上安装nginx的。我甚至尝试运行:
I am trying to find nginx so I can increase "client_max_body_size" but I am unable to find nginx installed on my server. I even tried running:
vi /etc/nginx/nginx.conf
或
vi /usr/local/nginx/conf/nginx.conf
要检查,如果配置文件存在,但我无法找到它在我的服务器上。
to check if the config file exists, but I couldnt find it on my server.
反正是有解决这个问题?或者,我必须安装的nginx我的服务器上。
Is there anyway to resolve this issue? Or do I have to installed nginx on my server.
编辑:
我在我的php.ini文件中的所有必要的修改,
I have made all necessary changes in my php.ini files,
post_max_size 128M
upload_max_filesize 100M
memory_limit 256M
谢谢,
拉朱
Thanks, Raju
推荐答案
-in php.ini文件(里面/etc/php.ini中)
max_input_time = 24000
max_execution_time = 24000
upload_max_filesize = 12000M
post_max_size = 24000M
memory_limit = 12000M
-in nginx.conf(内部的/ opt / nginx的/ conf目录)
client_max_body_size 24000M
及其对我的情况下工作。
Its working for my case
这篇关于413请求实体过大 - 文件上传问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!