您的位置:首页 > 理论基础 > 计算机网络

nginx 反向代理 出现HTTP 411错误

2016-05-18 11:15 405 查看
在使用Nginx 1.3.9以下版本,都存在当用户POST一个带有文件的请求的时候,出现HTTP 411错误。

nginx需要打一个补丁。补丁地址 https://github.com/agentzh/chunkin-nginx-module
重新编译安装nginx

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --add-module=/usr/local/src/chunkin-nginx-module-master

make -j8
make install

nginx.conf中添加chunkin on;error_page 411=@my_411_error;
location @my_411_error{
chunkin_resume;}重启nginx问题解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: