Home >Backend Development >PHP Tutorial >HTTP 411 Content-Length required lvalue required propagation required documents required

HTTP 411 Content-Length required lvalue required propagation required documents required

WBOY
WBOYOriginal
2016-07-29 08:54:081293browse

Today I encountered an nginx 411 problem during the image upload process.

First of all, I checked online, and the reason is as follows: When using Nginx 1.3.9 or below, there is an HTTP 411 error when the user POSTs a request with a file

The nginx version I am currently using is too Low.

[root@i nginx]# nginx -v
nginx version: nginx/1.0.15 

Reference: http://my.oschina.net/jerryhu/blog/371727?fromerr=vk9wZH5u

Solution:

1. Upgrade nginx online

2. Install existing nginxchunkin -nginx-module patch

so, then upgrade nginx online, refer to: http://www.tuicool.com/articles/yyA732i

After the upgrade, the verification passed.

[root@i yum.repos.d]# nginx -v
nginx version: nginx/1.8.1 

Successfully upgraded to version 1.8.1!

The above introduces HTTP 411 Content-Length required, including the required content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn