Apache Custom Error messages

How to make apache serve out custom error page? I know how to do this at a sub-server level. However i want to do this for all of apache. Please advise. Thanks


Well, you can put ErrorDocument directives in your main Apache config like so:


However, similar to other Apache directives, I’m not sure that additional VirtualHosts would inherit those settings. You’ll may need to experiment a bit :wink:

You can of course add any settings that aren’t inherited into the Virtualmin server template, so that they are automatically added to each Virtual Server that is added to your system.

Thanks Andrey for the reply.

What about Error handling section in Website Configuration?