Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    1,320

    Question How can I edit the Internal Server Error page?

    Anyway to edit this page to put in a custom message?

    Code:
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator, [email protected] 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.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  2. #2
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,842
    The usual method is to add an ErrorDocument statement to .htaccess or virtualhost config
    Code:
    ErrorDocument 500 /my_error_page.html
    or in the main server config, if you want it on all sites
    Code:
    ErrorDocument 500 http://example.com/server_wide_error_page.html
    Edit: In fact, you already have one:
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    so if you create a file with the correct name Apache will use it. cPanel uses the filename 500.shtml by default, IIRC.
    Last edited by foobic; 04-08-2011 at 08:38 AM.
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

Similar Threads

  1. Internal Server Error vs. Specific script error
    By wolfstad in forum Programming Discussion
    Replies: 8
    Last Post: 04-04-2007, 01:27 AM
  2. help: Internal Server Error &sql error
    By forsan in forum Hosting Security and Technology
    Replies: 2
    Last Post: 04-04-2006, 01:37 PM
  3. Internal Server Error, how to enable error reporting ?
    By ahmedaf in forum Hosting Security and Technology
    Replies: 1
    Last Post: 08-08-2005, 04:39 AM
  4. 500 Internal Server Error (when displaying a php page)
    By ahmedaf in forum Hosting Security and Technology
    Replies: 5
    Last Post: 12-06-2004, 02:29 PM
  5. Again: [ HTTP 500 Internal server error ] Reason this error ?
    By Sattam in forum Hosting Security and Technology
    Replies: 14
    Last Post: 04-01-2004, 10:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •