2012-12-04 39 views
1

我是堆棧,因爲我的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。

+0

不確定它是否與問題有關。但是,您是否啓用了Gzip壓縮?可能試圖禁用它..這就是我開始尋找的地方.. – Johan

回答

0

也許表單是使用GET http方法提交的,但瀏覽器構建的url太長。在這種情況下,通常的服務器答案是HTTP錯誤413 請求實體太大。

在這種情況下,您應該使用POST方法來找出這個問題。

+0

謝謝你的回答,博不,它是POST,我已經添加了一個錯誤文本的問題 – Konrad

+0

你改變了Apache和/或PHP的配置在這些日子裏?考慮用'phpinfo()'來構建一個簡單的php頁面來仔細檢查php的配置。 – freedev