Home >Backend Development >PHP Tutorial >HTTP 411 Content-Length required lvalue required propagation required documents required
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
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.