How to solve 500 Internal Service Error

How to solve 500 Internal Service Error

文章tkkuo » 2009年 5月 16日, 03:17

If you get 500 Internal Service Error, and you are using ModSecurity, here is how to solve the problem:

1, You try to visit your webpage, and see this error:
Error Message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, 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.


Apache/2.2.0 (Fedora) Server at Port 802, Check http log file

tail /var/log/httpd/patentdb-error.log

You see

ModSecurity: Output filter: Response body too large (over limit of 524288, total not specified)

3, Now you can fix it:
Open file with vi / etc/httpd/modsecurity.d/modsecurity_crs_10_config.conf, you will see these lines:

3, Now you can fix it:

SecRequestBodyAccess On
SecResponseBodyAccess On
SecResponseBodyMimeType (null) text/html text/plain text/xml
SecResponseBodyLimit 524288

Change 524288 to larger value, or change option ‘SecResponseBodyAccess’ to Off, save and restart apache

apachectl restart

參考資料: ... rence.html
文章: 131
註冊時間: 2008年 7月 19日, 19:24

回到 Linux


正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客