Skip to content

PavelSapachev/custom-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom pages of HTTP response

With the custom pages of HTTP responses your can replace the standard pages of web servers such as Apache, Nginx, lighttpd, etc. Custom pages are easy to install and have multilanguage support: English and Russian.


Demo

Go to demo page

Configuration

You can configure following settings in the config.js file:

  • "lang" - the language of pages text. Your can select one of language from translation folder ("/src/lang").

Pages compilation

For pages compilation using Node.JS. After installing the Node.JS in custom pages folder run following command: node compile.js.

After completion of compile, in output folder will be created static html files - upload them to the server.

Also your can download latest compiled version from SourceForge.

Web server configuration

Example of Nginx configuration:

error_page 400 /401.html;
error_page 401 /401.html;
error_page 403 /403.html;
error_page 404 /404.html;
error_page 410 /410.html;
error_page 500 /500.html;
error_page 503 /503.html;
error_page 505 /505.html;

location ~^\/(401|403|404|500|503|505)\.html$ {
    charset utf-8;
	auth_basic off;
	root /usr/share/nginx/www;
}

About

Custom pages of HTTP response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published