Skip to content

hell-sh/HTTP-Error-Pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP-Error-Pages

Fancy error pages for your web server.

Apache Installation

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>