旌旗博客

2008-11-28

Fix Nginx “411 Length Required” Problem

Filed under: I.T. — 标签:, , — rocky @ 16:28
When using POST method to request via Nginx 0.6.33 without any post body data, you may get this error: 411 Length Required. 

Download nginx-0.6.33-length_required patch
Save the attachment and run this command in the root path of nginx 0.6.33 source code:
patch ./src/http/ngx_http_request.c<nginx-0_6_33-length_required.patch
Then "make && make install && sudo /sbin/service nginx restart" and enjoy your AJAX function.

3 条评论 »

  1. Here is some information about this discuss:
    http://www.ruby-forum.com/topic/162976#754426

    评论 by rocky — 2008-11-29 @ 11:36

  2. Here is the patch for nginx 0.6.34: http://rocky.blog.kingtch.com/files/2008/11/nginx-0.6.34-411_length_required.patch

    评论 by rocky — 2008-11-29 @ 12:06

  3. хорошо пишете

    评论 by Kaverin — 2009-06-17 @ 11:57

这篇文章上的评论的 RSS feed TrackBack URL

留下评论

Powered by WordPress