- Notifications
You must be signed in to change notification settings - Fork15
HTML Templates for HTTP errors (404, 500, 503 and 504).
License
PecceG2/HTML_Template_http_codes
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
HTML Template HTTP Codes is a HTML templates to decorate your HTTP web server responses/errors
Change default nginx/apache templates for a responsive and more attractive design
View all my projects »
Report Bug ·View License ·Request Feature
Just clone/download the git repository (The html files are included on error number folder, example "500/index.html" for 500 Internal Server Error)
NGINX supports custom error-pages using multipleerror_page directives.
File:nginx.conf (/etc/nginx/)
Example - assumes HttpErrorPages are located into/var/html/www/ErrorPages.
server{listen80;server_name localhost;root /var/html/www;indexindex.html;location /{try_files$uri$uri/ =404; # add one directive for each http status codeerror_page404 /ErrorPages/404/index.html;error_page500 /ErrorPages/500/index.html;error_page503 /ErrorPages/503/index.html;error_page503 /ErrorPages/504/index.html;} # redirect the virtual ErrorPages path the real pathlocation /ErrorPages/{alias /var/html/www/ErrorPages/;internal;}
Apache Httpd 2.x supports custom error-pages using multipleErrorDocument directives.
File:httpd.conf or.htaccess
Example - assumes HttpErrorPages are located into yourdocument root/var/www/...docroot../ErrorPages.
ErrorDocument404 /ErrorPages/404/index.htmlErrorDocument500 /ErrorPages/500/index.htmlErrorDocument503 /ErrorPages/503/index.htmlErrorDocument504 /ErrorPages/504/index.html
You can check out the full licensehere
This project is licensed under the terms of theMIT license.
About
HTML Templates for HTTP errors (404, 500, 503 and 504).
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.

