From 31936abce8f7884c2d039831d830b17f42244ccc Mon Sep 17 00:00:00 2001 From: ugrnm Date: Thu, 23 Mar 2017 13:02:26 +0100 Subject: [PATCH] 404 floppy not found --- .gitignore | 9 +++++++++ etc/nginx/sites-available/default | 5 ++--- var/www/static/404-floppy-not-found.html | 12 ++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 var/www/static/404-floppy-not-found.html diff --git a/.gitignore b/.gitignore index 222ad78..5abbe39 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,14 @@ !/usr/local/sbin/ /usr/local/sbin/*/ +!/var/ +/var/* +!/var/www/ +/var/www/* +!/var/www/static/ +/var/www/static/* +!/var/www/static/404-floppy-not-found.html + + *.pyc .DS_Store diff --git a/etc/nginx/sites-available/default b/etc/nginx/sites-available/default index 6a823b0..2c2deb1 100644 --- a/etc/nginx/sites-available/default +++ b/etc/nginx/sites-available/default @@ -2,7 +2,6 @@ server { listen 80 default_server; listen [::]:80 default_server; - #root /var/www/html; root /media/floppy/noweb; # Add index.php to the list if you are using PHP @@ -10,9 +9,9 @@ server { server_name _; - error_page 404 /insert.html; + error_page 404 /404-floppy-not-found.html; - location = /insert.html { + location = /404-floppy-not-found.html { root /var/www/static; internal; } diff --git a/var/www/static/404-floppy-not-found.html b/var/www/static/404-floppy-not-found.html new file mode 100644 index 0000000..4dacfde --- /dev/null +++ b/var/www/static/404-floppy-not-found.html @@ -0,0 +1,12 @@ + + + + + INSERT FLOPPY!!! + + + + +

404 - FLOPPY NOT FOUND

+ +