Does anyone know where to change error code 500 message??

Hi All

Does anyone know where to change error code 500 message??

–>
Internal Server Error

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

Please contact the server administrator, root@localhost 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.
<–

I would like to change the mail address etc.

Thanks in advance.

-Tim

Howdy,

You can change that by setting the “ServerAdmin” field in Apache.

If you edit your /etc/httpd/conf/httpd.conf file, there’s probably a line in there that looks like this:

ServerAdmin webmaster@localhost

You can change that address to your preferred server admin email address.

-Eric

Hi Eric

Thanks, I should have figured that one out myself :slight_smile:
Secondly, is it possible to make our own error code 500 page, so that it contain extra information such as contact info, URL reference with more?

  • Tim

Howdy,

You can do that by going into into Services -> Configure Website -> Error Handling.

There, you can put the error code (“500” in this case), and the URL to your error document.

-Eric

Hi Eric

Thanks, I will look into the error handling page.

  • Tim