HttpErrorPages/README.md
2015-01-11 17:37:43 +01:00

2.2 KiB

Bootstrap based HttpErrorPages

Simple, Bootstrap based HTTP Error Page Generator. Create a bunch of custom error pages - suitable to use with Lighttpd, Nginx or Apache.

Screenshot

Demo

Customization

To customize the pages, you can edit the template.phtml file and add your own styles. Finally run the generator-script. If you wan't to add custom pages/additional error-codes, just put a new entry into the pages.php file. The generator-script will process each entry and generates an own page.

Custom Page Example (pages.php)

Error-Codes used by CloudFlare

// webserver origin error
'520' => array(
	'title' => 'Origin Error - Unknown Host',
	'message' => 'The requested hostname is not routed. Use only hostnames to access resources.'
),
		
// webserver down error
'521' => array (
		'title' => 'Webservice currently unavailable',
		'message' => "We've got some trouble with our backend upstream cluster.\nOur service team has been dispatched to bring it back online."
)	

Build/Generator

Used Naming-Scheme: HTTPCODE.html (customizable by editing the generator script) To generate the static html pages, run the generator.php script:

php generator.php

All generated html files are located into the Build/ directory.

License

HttpErrorsPages is OpenSource and licensed under the Terms of The MIT License (X11) - your're welcome to contribute