| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1ba457b commit 7dfd62d
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,23 +1,43 @@ | |||
| 1 | 1 | # Bootstrap based HttpErrorPages # | |
| 2 | - Simple, [Bootstrap](http://getbootstrap.com/) based HTTP Error Page Generator. | ||
| 3 | - | ||
| 4 | - Naming-Scheme: **HTTP**__<CODE>__**.html** | ||
| 2 | + 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. | ||
| 3 | + | ||
| 4 | +  | ||
| 5 | + | ||
| 6 | + ## Demo ## | ||
| 7 | + * [HTTP400](http://httperrorpages.andidittrich.de/HTTP400.html) | ||
| 8 | + * [HTTP401](http://httperrorpages.andidittrich.de/HTTP401.html) | ||
| 9 | + * [HTTP403](http://httperrorpages.andidittrich.de/HTTP403.html) | ||
| 10 | + * [HTTP404](http://httperrorpages.andidittrich.de/HTTP404.html) | ||
| 11 | + * [HTTP500](http://httperrorpages.andidittrich.de/HTTP500.html) | ||
| 12 | + * [HTTP501](http://httperrorpages.andidittrich.de/HTTP501.html) | ||
| 13 | + * [HTTP502](http://httperrorpages.andidittrich.de/HTTP502.html) | ||
| 14 | + * [HTTP503](http://httperrorpages.andidittrich.de/HTTP503.html) | ||
| 15 | + * [HTTP520](http://httperrorpages.andidittrich.de/HTTP520.html) | ||
| 16 | + * [HTTP521](http://httperrorpages.andidittrich.de/HTTP521.html) | ||
| 5 | 17 | ||
| 6 | 18 | ## Customization ## | |
| 7 | 19 | To customize the pages, you can edit the **template.phtml** file and add your own styles. Finally run the generator-script. | |
| 8 | 20 | 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. | |
| 9 | 21 | ||
| 10 | 22 | #### Custom Page Example (pages.php) #### | |
| 23 | + Error-Codes used by CloudFlare | ||
| 11 | 24 | ||
| 12 | 25 | ```php | |
| 13 | 26 | // webserver origin error | |
| 14 | 27 | '520' => array( | |
| 15 | 28 | 'title' => 'Origin Error - Unknown Host', | |
| 16 | 29 | 'message' => 'The requested hostname is not routed. Use only hostnames to access resources.' | |
| 17 | - ), | ||
| 30 | + ), | ||
| 31 | + | ||
| 32 | + // webserver down error | ||
| 33 | + '521' => array ( | ||
| 34 | + 'title' => 'Webservice currently unavailable', | ||
| 35 | + 'message' => "We've got some trouble with our backend upstream cluster.\nOur service team has been dispatched to bring it back online." | ||
| 36 | + ) | ||
| 18 | 37 | ``` | |
| 19 | 38 | ||
| 20 | 39 | ### Build/Generator ### | |
| 40 | + Used Naming-Scheme: **HTTP**__CODE__**.html** (customizable by editing the generator script) | ||
| 21 | 41 | To generate the static html pages, run the `generator.php` script: | |
| 22 | 42 | ||
| 23 | 43 | ```shell | |
| Back | FazBrowse Home | New Git URL |
0 commit comments