declárese:
ErrorDocument 500 /media/web/error-500.html
de esta manera, si se produce el error 500 en el servidor, apache sirve el archivo indicado a continuación, esto es, /media/web/error-500.html. la ruta al archivo de error debe ser relativa al documentroot:
URLs can begin with a slash (/) for local web-paths (relative to the DocumentRoot), or be a full URL which the client can resolve.