A set of custom minimalist 4xx and 5xx error pages for Nginx.
-
Navigate into Nginx's default document directory:
cd /usr/share/nginx/html
-
Clone the repository:
git clone https://github.com/bartosjiri/nginx-errors.git
-
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 }
-
Verify the configuration and reload Nginx:
sudo nginx -t sudo service nginx reload