Skip to content

A set of custom minimalist 4xx and 5xx error pages for Nginx.

Notifications You must be signed in to change notification settings

bartosjiri/nginx-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minimalist Nginx error pages

A set of custom minimalist 4xx and 5xx error pages for Nginx.

Preview

404 error page

Installation

  1. Navigate into Nginx's default document directory:

    cd /usr/share/nginx/html
    
  2. Clone the repository:

    git clone https://github.com/bartosjiri/nginx-errors.git
    
  3. Add the custom error pages to the server's default configuration in /etc/nginx/sites-enabled/default file:

    server {
    ...
    include /usr/share/nginx/html/nginx-errors/nginx-errors.conf
    }
    
  4. Verify the configuration and reload Nginx:

    sudo nginx -t
    sudo service nginx reload
    

About

A set of custom minimalist 4xx and 5xx error pages for Nginx.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published