我正在堆叠,因为我的Linux Apache2网络服务器上的所有网站都有一个表单要完成,只有在第一次完成(刷新使其工作)后才返回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。
答案 0 :(得分:0)
可能使用GET http方法提交表单,但浏览器构建的url太长。在这种情况下,通常的服务器答案是HTTP错误413 请求实体太大。
在这种情况下,你应该使用POST方法找出这个问题。