FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

initial commit · HttpErrorPages/HttpErrorPages@7dfd62d · GitHub

Commit 7dfd62d

Browse files
Andi Dittrich
committed
initial commit
1 parent 1ba457b commit 7dfd62d

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,43 @@
11
# 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+
![Screenshot](http://httperrorpages.andidittrich.de/screenshot1.png)
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)
517

618
## Customization ##
719
To customize the pages, you can edit the **template.phtml** file and add your own styles. Finally run the generator-script.
820
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.
921

1022
#### Custom Page Example (pages.php) ####
23+
Error-Codes used by CloudFlare
1124

1225
```php
1326
// webserver origin error
1427
'520' => array(
1528
'title' => 'Origin Error - Unknown Host',
1629
'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+
)
1837
```
1938

2039
### Build/Generator ###
40+
Used Naming-Scheme: **HTTP**__CODE__**.html** (customizable by editing the generator script)
2141
To generate the static html pages, run the `generator.php` script:
2242

2343
```shell

‎screenshot1.png‎

43.3 KB
LoadingViewer requires iframe.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL