Nginx conf to use httpstatusdogs.com images as nginx error pages
- Create a directory to put the images &
codes.conf
- Use the bash commands in
codes.conf
to download the images and generate the error pages - Update the paths in
codes.conf
to match your environment - Include
codes.conf
in any of your nginx server blocks - Reload nginx
- Share and enjoy :)
server {
root /var/www/test;
server_name test.dev;
listen 80;
index index.html;
include /usr/local/nginx/includes/statusdogs/codes.conf;
}
Huge thanks to Mike Lee for putting together the awesome httpstatusdogs.com