1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Error Document 500 Not Being Served

Discussion in 'Plesk for Linux - 8.x and Older' started by artm, Jun 10, 2008.

  1. artm

    artm Guest

    Error docs for 404 errors etc work. But for 500 errors (Internal Server Error), the error gets written to the log, but all that gets displayed is a blank page. Also the response headers served are minimal (just HTTP Status Code: HTTP/1.1 500 Internal Server Error).

    This is the same for all domains on the server. In <virtualhost> we have:

    Alias "/error_docs" "/var/www/vhosts/domain.com/error_docs"
    ErrorDocument 400 /error_docs/bad_request.html
    ErrorDocument 401 /error_docs/unauthorized.html
    ErrorDocument 403 /error_docs/forbidden.html
    ErrorDocument 404 /error_docs/not_found.html
    ErrorDocument 500 /error_docs/internal_server_error.html
    etc etc

    The 500 file does exist. 'apachectl configtest' shows no errors.

    Any ideas?
  2. meto

    meto Guest

    How about .htaccess - configtest doen't test it for errors.
  3. faris

    faris Guest

    You are using custom error documents?

    If so then, as I recall, there's a bug in...Internet Explorer I think...that causes this problem.

    Something to do with the size of the file - it can't be too small.

    Try adding a load of comments to the file...anything to increase the file size.