reesun 发表于 2011-12-21 08:44

nginx:413 Request Entity Too Large

<span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 21px; "><p style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">运维环境:CentOS + nginx + php + mysql + phpmyadmin</p><p style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">在用phpmyadmin进行sql数据库导入时候出现:413 Request Entity Too Large。而sql文件本身大小为1.05M,根据经验判断应该是上传的文件超过了web服务器的限制。</p><p style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">解决方法:打开nginx配置文件nginx.conf,找到http{}段,添加<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">client_max_body_size 8m;到该段中。其中8m可以由你自行设定。</p></span>
               
               
               
               
页: [1]
查看完整版本: nginx:413 Request Entity Too Large