|
@@ -1,23 +1,43 @@
|
|
|
# Bootstrap based HttpErrorPages #
|
|
|
-Simple, [Bootstrap](http://getbootstrap.com/) based HTTP Error Page Generator.
|
|
|
-
|
|
|
-Naming-Scheme: **HTTP**__<CODE>__**.html**
|
|
|
+Simple, [Bootstrap](http://getbootstrap.com/) based HTTP Error Page Generator. Create a bunch of custom error pages - suitable to use with [Lighttpd](http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ConfigurationOptions), Nginx or Apache.
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+## Demo ##
|
|
|
+* [HTTP400](http://httperrorpages.andidittrich.de/HTTP400.html)
|
|
|
+* [HTTP401](http://httperrorpages.andidittrich.de/HTTP401.html)
|
|
|
+* [HTTP403](http://httperrorpages.andidittrich.de/HTTP403.html)
|
|
|
+* [HTTP404](http://httperrorpages.andidittrich.de/HTTP404.html)
|
|
|
+* [HTTP500](http://httperrorpages.andidittrich.de/HTTP500.html)
|
|
|
+* [HTTP501](http://httperrorpages.andidittrich.de/HTTP501.html)
|
|
|
+* [HTTP502](http://httperrorpages.andidittrich.de/HTTP502.html)
|
|
|
+* [HTTP503](http://httperrorpages.andidittrich.de/HTTP503.html)
|
|
|
+* [HTTP520](http://httperrorpages.andidittrich.de/HTTP520.html)
|
|
|
+* [HTTP521](http://httperrorpages.andidittrich.de/HTTP521.html)
|
|
|
|
|
|
## 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
|
|
|
|
|
|
```php
|
|
|
// 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: **HTTP**__CODE__**.html** (customizable by editing the generator script)
|
|
|
To generate the static html pages, run the `generator.php` script:
|
|
|
|
|
|
```shell
|