From 3bdd2ee6a151f499f9ac17be4fee3277502031d0 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Tue, 21 Mar 2017 18:34:26 +0100 Subject: [PATCH] nginx config --- etc/nginx/sites-available/default | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 etc/nginx/sites-available/default diff --git a/etc/nginx/sites-available/default b/etc/nginx/sites-available/default new file mode 100644 index 0000000..3733cac --- /dev/null +++ b/etc/nginx/sites-available/default @@ -0,0 +1,31 @@ +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 + index index.html index.htm index.nginx-debian.html; + + server_name _; + + error_page 404 /insert.html; + + location = /insert.html { + root /var/www/static; + internal; + } + + location / { + try_files $uri $uri/ =404; + } + + location /static { + alias /var/www/static; + autoindex on; + } +} + + +