jaysnm / nginx-errors

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
    
  2. Clone the repository:

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

    server {
    ...
    include /usr/share/nginx/error-pages/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.


Languages

Language:HTML 88.6%Language:SCSS 11.4%