Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HTML Templates for HTTP errors (404, 500, 503 and 504).

License

NotificationsYou must be signed in to change notification settings

PecceG2/HTML_Template_http_codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContributorsForksStargazersIssuesMIT License


Logo

HTML Templates for HTTP status codes

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

Screenshots

Screenshot

Templates demo

Usage

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 Integration

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 Integration

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

License

You can check out the full licensehere

This project is licensed under the terms of theMIT license.


[8]ページ先頭

©2009-2025 Movatter.jp