Fancy error pages for your web server.
You can simply run this command:
wget -qO- https://installation.hell.sh/apache-http-error-pages | bash
or clone HTTP-Error-Pages into /etc/apache2/http-error-pages
, and then add this to your apache2.conf
:
Alias /http-error-pages /etc/apache2/http-error-pages
ErrorDocument 400 /http-error-pages/400.html
ErrorDocument 401 /http-error-pages/401.html
ErrorDocument 403 /http-error-pages/403.html
ErrorDocument 404 /http-error-pages/404.html
ErrorDocument 408 /http-error-pages/408.html
ErrorDocument 410 /http-error-pages/410.html
<Directory /etc/apache2/http-error-pages>
AllowOverride None
Require all granted
</Directory>