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 @@ + + +
+ +