소스 검색

initial commit

Andi Dittrich 10 년 전
부모
커밋
7dfd62d87e
2개의 변경된 파일24개의 추가작업 그리고 4개의 파일을 삭제
  1. 24 4
      README.md
  2. BIN
      screenshot1.png

+ 24 - 4
README.md

@@ -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.
+
+![Screenshot](http://httperrorpages.andidittrich.de/screenshot1.png)
+
+## 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

BIN
screenshot1.png