我是堆棧,因爲我的Linux Apache2 web服務器上的所有網站都有返回413請求實體太大錯誤只有在第一次完成後(刷新使其工作)。錯誤的樣子:無效的Content-Length和HTTP 413錯誤?
Request Entity Too Large
The requested resource
/mailman/subscribe/konrad
does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.
Request Entity Too Large
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
這裏是Apache2的錯誤日誌:
[Tue Dec 04 12:06:27 2012] [error] [client 5.184.118.16] Invalid Content-Length, referer: http://62.87.177.20/mailman/admindb/konrad
[Tue Dec 04 12:06:27 2012] [error] [client 5.184.118.16] (-3)Unknown error 4294967293: Error reading request entity data, referer: http://62.87.177.20/mailman/admindb/konrad
[Tue Dec 04 12:07:12 2012] [error] [client 46.134.87.133] Invalid Content-Length, referer: http://www.comfortzg.com/~lekumed2010/login.php?PHPSESSID=e6b9c4d160a2b06435bb8c0676acbe51
它使雙方的錯誤(一個使用PHP和Perl的第二(CGI))的腳本。我沒有使用SSL。
不確定它是否與問題有關。但是,您是否啓用了Gzip壓縮?可能試圖禁用它..這就是我開始尋找的地方.. – Johan