# diff -u /etc/httpd2/conf/sites-enabled/000-default_https.conf{~,}
--- /etc/httpd2/conf/sites-enabled/000-default_https.conf~ 2015-04-14 11:29:26.000000000 +0300
+++ /etc/httpd2/conf/sites-enabled/000-default_https.conf 2015-04-21 01:49:44.102759989 +0300
@@ -25,6 +25,7 @@
# General setup for the virtual host
DocumentRoot "/usr/share/doc/indexhtml/"
+ ErrorDocument 404 /new404.html
ServerName localhost.localdomain:443
ServerAdmin webmaster@example.com
ErrorLog "/var/log/httpd2/error_log"
# cat /usr/share/doc/indexhtml/new404.html
<html>
<body>
<h2 style="color:red">404</h2>
</body>
</html>
# service httpd2 reload
Reloading httpd2 service: [ DONE ]